pub struct MintState {
pub token_program: Address,
pub transfer_fee: Option<TransferFeeConfig>,
pub transfer_hook: Option<Address>,
pub paused: bool,
}Fields§
§token_program: Address§transfer_fee: Option<TransferFeeConfig>§transfer_hook: Option<Address>The hook program. Token-2022 calls it on every transfer. The swap must include its accounts.
paused: boolToken-2022 fails every transfer while this is true.
Implementations§
Trait Implementations§
impl Copy for MintState
impl StructuralPartialEq for MintState
Auto Trait Implementations§
impl Freeze for MintState
impl RefUnwindSafe for MintState
impl Send for MintState
impl Sync for MintState
impl Unpin for MintState
impl UnsafeUnpin for MintState
impl UnwindSafe for MintState
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