#[non_exhaustive]pub struct MintedToken {
pub token: TokenRef,
pub secret: Secret,
pub previous: Option<TokenRef>,
}Expand description
What ForgejoForge::mint_token minted, now in use.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.token: TokenRefThe new token.
secret: SecretIts secret, for the caller to persist (sealed) before retiring the old one. Never printed.
previous: Option<TokenRef>The token it replaced, when it could be identified — what to pass to
ForgejoForge::retire_token once the new one is persisted
everywhere it is used. None: find and delete it by hand.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for MintedToken
impl RefUnwindSafe for MintedToken
impl Send for MintedToken
impl Sync for MintedToken
impl Unpin for MintedToken
impl UnsafeUnpin for MintedToken
impl UnwindSafe for MintedToken
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