Struct diem_types::account_config::events::sent_payment::SentPaymentEvent
source · pub struct SentPaymentEvent { /* private fields */ }
Expand description
Struct that represents a SentPaymentEvent.
Implementations§
source§impl SentPaymentEvent
impl SentPaymentEvent
pub fn new( amount: u64, currency_code: Identifier, receiver: AccountAddress, metadata: Vec<u8> ) -> Self
pub fn try_from_bytes(bytes: &[u8]) -> Result<Self>
sourcepub fn receiver(&self) -> AccountAddress
pub fn receiver(&self) -> AccountAddress
Get the sender of this transaction event.
sourcepub fn currency_code(&self) -> &IdentStr
pub fn currency_code(&self) -> &IdentStr
Return the currency currency_code symbol that the payment was made in.
Trait Implementations§
source§impl Debug for SentPaymentEvent
impl Debug for SentPaymentEvent
source§impl<'de> Deserialize<'de> for SentPaymentEvent
impl<'de> Deserialize<'de> for SentPaymentEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl MoveStructType for SentPaymentEvent
impl MoveStructType for SentPaymentEvent
const MODULE_NAME: &'static IdentStr = ACCOUNT_MODULE_IDENTIFIER
const STRUCT_NAME: &'static IdentStr = _
fn module_identifier() -> Identifier
fn struct_identifier() -> Identifier
fn type_params() -> Vec<TypeTag, Global> ⓘ
fn struct_tag() -> StructTag
source§impl Serialize for SentPaymentEvent
impl Serialize for SentPaymentEvent
source§impl TryFrom<&ContractEvent> for SentPaymentEvent
impl TryFrom<&ContractEvent> for SentPaymentEvent
Auto Trait Implementations§
impl RefUnwindSafe for SentPaymentEvent
impl Send for SentPaymentEvent
impl Sync for SentPaymentEvent
impl Unpin for SentPaymentEvent
impl UnwindSafe for SentPaymentEvent
Blanket Implementations§
source§impl<T> TestOnlyHash for Twhere
T: Serialize + ?Sized,
impl<T> TestOnlyHash for Twhere T: Serialize + ?Sized,
source§fn test_only_hash(&self) -> HashValue
fn test_only_hash(&self) -> HashValue
Generates a hash used only for tests.