pub enum AllowedAssets {
DefaultOnly,
Any,
List(Vec<SpendControlAsset>),
}Expand description
Opt-in non-default assets for SpendControls.
Variants§
DefaultOnly
Default assets only (omit allowedAssets).
Any
Allow any asset; USD cap still applies to defaults.
List(Vec<SpendControlAsset>)
Defaults plus listed entries; optional integer atomic cap per entry.
Trait Implementations§
Source§impl Clone for AllowedAssets
impl Clone for AllowedAssets
Source§fn clone(&self) -> AllowedAssets
fn clone(&self) -> AllowedAssets
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 moreSource§impl Debug for AllowedAssets
impl Debug for AllowedAssets
Source§impl Default for AllowedAssets
impl Default for AllowedAssets
Source§fn default() -> AllowedAssets
fn default() -> AllowedAssets
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AllowedAssets
impl RefUnwindSafe for AllowedAssets
impl Send for AllowedAssets
impl Sync for AllowedAssets
impl Unpin for AllowedAssets
impl UnsafeUnpin for AllowedAssets
impl UnwindSafe for AllowedAssets
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