Struct near_contract_tools::standard::nep141::Nep141Transfer
source · pub struct Nep141Transfer {
pub sender_id: AccountId,
pub receiver_id: AccountId,
pub amount: u128,
pub memo: Option<String>,
pub msg: Option<String>,
}
Expand description
Transfer metadata generic over both types of transfer (ft_transfer
and
ft_transfer_call
).
Fields§
§sender_id: AccountId
Sender’s account ID
receiver_id: AccountId
Receiver’s account ID
amount: u128
Transferred amount
memo: Option<String>
Optional memo string
msg: Option<String>
Message passed to contract located at receiver_id
Implementations§
source§impl Nep141Transfer
impl Nep141Transfer
sourcepub fn is_transfer_call(&self) -> bool
pub fn is_transfer_call(&self) -> bool
Returns true
if this transfer comes from a ft_transfer_call
call, false
otherwise
Trait Implementations§
source§impl BorshDeserialize for Nep141Transferwhere
AccountId: BorshDeserialize,
u128: BorshDeserialize,
Option<String>: BorshDeserialize,
impl BorshDeserialize for Nep141Transferwhere
AccountId: BorshDeserialize,
u128: BorshDeserialize,
Option<String>: BorshDeserialize,
source§impl BorshSerialize for Nep141Transferwhere
AccountId: BorshSerialize,
u128: BorshSerialize,
Option<String>: BorshSerialize,
impl BorshSerialize for Nep141Transferwhere
AccountId: BorshSerialize,
u128: BorshSerialize,
Option<String>: BorshSerialize,
source§impl Clone for Nep141Transfer
impl Clone for Nep141Transfer
source§fn clone(&self) -> Nep141Transfer
fn clone(&self) -> Nep141Transfer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Nep141Transfer
impl Debug for Nep141Transfer
source§impl<'de> Deserialize<'de> for Nep141Transfer
impl<'de> Deserialize<'de> for Nep141Transfer
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