pub struct MintOptions {
pub anchor: Option<ObjectId>,
pub time_config: Option<TokenTimeConfig>,
}Expand description
Options for customizing capability minting beyond the basic case.
Used with CapabilityEngine::mint_capability_with_options and
CapabilityEngine::issue_capability to override the policy’s default
anchor configuration or set a custom token lifetime.
Fields§
§anchor: Option<ObjectId>Override the policy’s anchor configuration with an explicit principal.
When set, the engine attaches designation("anchor", value) to the
minted capability, regardless of what the policy declares. Used for
the issue_capability path (which skips policy) and for explicit
caller intent.
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 (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 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