pub struct MintCapability<'a> { /* private fields */ }Expand description
Proof that a specific issuance was authorized by the ledger’s mint authority.
No public constructor, and no public route to one other than
LedgerBackend::authorize_mint.
It borrows the transfer it authorized, so a capability obtained for one
issuance cannot be spent on another — that is a type error, not a runtime
check.
Implementations§
Source§impl MintCapability<'_>
impl MintCapability<'_>
Sourcepub fn transfer(&self) -> &IssueTransfer
pub fn transfer(&self) -> &IssueTransfer
The issuance this capability authorizes — the only one it can be spent on, since the backend mints exactly this value.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for MintCapability<'a>
impl<'a> RefUnwindSafe for MintCapability<'a>
impl<'a> Send for MintCapability<'a>
impl<'a> Sync for MintCapability<'a>
impl<'a> Unpin for MintCapability<'a>
impl<'a> UnsafeUnpin for MintCapability<'a>
impl<'a> UnwindSafe for MintCapability<'a>
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