pub struct MintOptions {
pub namespace: Option<String>,
pub time_config: Option<TokenTimeConfig>,
}Expand description
Options for customizing capability minting beyond the basic case.
Used with CapabilityEngine::mint_capability_with_options to add namespace
restrictions or custom time configuration to minted tokens.
Fields§
§namespace: Option<String>Restrict the token to a specific namespace.
time_config: Option<TokenTimeConfig>Override the default time config. If None, uses default (5 minutes).
Trait Implementations§
Source§impl Clone for MintOptions
impl Clone for MintOptions
Source§fn clone(&self) -> MintOptions
fn clone(&self) -> MintOptions
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 MintOptions
impl Debug for MintOptions
Source§impl Default for MintOptions
impl Default for MintOptions
Source§fn default() -> MintOptions
fn default() -> MintOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MintOptions
impl RefUnwindSafe for MintOptions
impl Send for MintOptions
impl Sync for MintOptions
impl Unpin for MintOptions
impl UnsafeUnpin for MintOptions
impl UnwindSafe for MintOptions
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