pub struct NoExtensionCustomizer;Expand description
This implementation does not add any extensions.
Trait Implementations§
Source§impl MintCustomizer for NoExtensionCustomizer
impl MintCustomizer for NoExtensionCustomizer
Source§fn get_token_2022_mint_space() -> Result<usize, ProgramError>
fn get_token_2022_mint_space() -> Result<usize, ProgramError>
Calculates the space required for a new spl-token-2022 mint
account, including any custom extensions
Source§fn get_freeze_auth_and_decimals(
unwrapped_mint_account: &AccountInfo<'_>,
) -> Result<(Option<Pubkey>, u8), ProgramError>
fn get_freeze_auth_and_decimals( unwrapped_mint_account: &AccountInfo<'_>, ) -> Result<(Option<Pubkey>, u8), ProgramError>
Customize the freeze authority and decimals for the wrapped mint
Source§fn initialize_extensions(
_wrapped_mint_account: &AccountInfo<'_>,
_wrapped_token_program_account: &AccountInfo<'_>,
) -> ProgramResult
fn initialize_extensions( _wrapped_mint_account: &AccountInfo<'_>, _wrapped_token_program_account: &AccountInfo<'_>, ) -> ProgramResult
Customizes extensions for the wrapped mint before the base mint is
initialized. This is for extensions that must be initialized on an
uninitialized mint account, like
ConfidentialTransferMint.Auto Trait Implementations§
impl Freeze for NoExtensionCustomizer
impl RefUnwindSafe for NoExtensionCustomizer
impl Send for NoExtensionCustomizer
impl Sync for NoExtensionCustomizer
impl Unpin for NoExtensionCustomizer
impl UnwindSafe for NoExtensionCustomizer
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more