pub struct SpendControlAsset {
pub network: ChainIdPattern,
pub asset: CompactString,
pub max_amount_per_payment: Option<CompactString>,
}Expand description
Opt-in asset for AllowedAssets::List.
Fields§
§network: ChainIdPatternCAIP-2 network or pattern (eip155:8453, eip155:*).
asset: CompactStringOn-chain asset id, or a default-asset symbol (e.g. "PYUSD").
max_amount_per_payment: Option<CompactString>Optional integer atomic per-payment cap. None means uncapped.
Trait Implementations§
Source§impl Clone for SpendControlAsset
impl Clone for SpendControlAsset
Source§fn clone(&self) -> SpendControlAsset
fn clone(&self) -> SpendControlAsset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SpendControlAsset
impl RefUnwindSafe for SpendControlAsset
impl Send for SpendControlAsset
impl Sync for SpendControlAsset
impl Unpin for SpendControlAsset
impl UnsafeUnpin for SpendControlAsset
impl UnwindSafe for SpendControlAsset
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