pub struct Icrc2Payer {
pub account: Option<Account>,
pub spender_subaccount: Option<ByteBuf>,
pub ledger_canister_id: Option<Principal>,
pub created_at_time: Option<TokenAmount>,
}Expand description
User’s payment details for an ICRC2 payment.
Fields§
§account: Option<Account>The customer’s principal and (optionally) subaccount.
By default, the caller’s main account is used.
spender_subaccount: Option<ByteBuf>The spender, if different from the payer.
ledger_canister_id: Option<Principal>The ledger canister ID.
Note: This is included in order to improve error messages if the caller tries to use the wrong ledger.
created_at_time: Option<TokenAmount>Corresponds to the created_at_time field in ICRC2.
Trait Implementations§
Source§impl CandidType for Icrc2Payer
impl CandidType for Icrc2Payer
Source§impl Clone for Icrc2Payer
impl Clone for Icrc2Payer
Source§fn clone(&self) -> Icrc2Payer
fn clone(&self) -> Icrc2Payer
Returns a duplicate 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 Icrc2Payer
impl Debug for Icrc2Payer
Source§impl<'de> Deserialize<'de> for Icrc2Payer
impl<'de> Deserialize<'de> for Icrc2Payer
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 PartialEq for Icrc2Payer
impl PartialEq for Icrc2Payer
impl Eq for Icrc2Payer
impl StructuralPartialEq for Icrc2Payer
Auto Trait Implementations§
impl Freeze for Icrc2Payer
impl RefUnwindSafe for Icrc2Payer
impl Send for Icrc2Payer
impl Sync for Icrc2Payer
impl Unpin for Icrc2Payer
impl UnwindSafe for Icrc2Payer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more