pub struct Token2022Config {
pub blocked_mint_extensions: Vec<String>,
pub blocked_account_extensions: Vec<String>,
/* private fields */
}Fields§
§blocked_mint_extensions: Vec<String>§blocked_account_extensions: Vec<String>Implementations§
Source§impl Token2022Config
impl Token2022Config
Sourcepub fn initialize(&mut self) -> Result<(), String>
pub fn initialize(&mut self) -> Result<(), String>
Initialize and parse extension strings into ExtensionTypes This should be called after deserialization to populate the cached fields
Sourcepub fn get_blocked_mint_extensions(&self) -> &[ExtensionType]
pub fn get_blocked_mint_extensions(&self) -> &[ExtensionType]
Get all blocked mint extensions as ExtensionType
Sourcepub fn get_blocked_account_extensions(&self) -> &[ExtensionType]
pub fn get_blocked_account_extensions(&self) -> &[ExtensionType]
Get all blocked account extensions as ExtensionType
Sourcepub fn is_mint_extension_blocked(&self, ext: ExtensionType) -> bool
pub fn is_mint_extension_blocked(&self, ext: ExtensionType) -> bool
Check if a mint extension is blocked
Sourcepub fn is_account_extension_blocked(&self, ext: ExtensionType) -> bool
pub fn is_account_extension_blocked(&self, ext: ExtensionType) -> bool
Check if an account extension is blocked
Trait Implementations§
Source§impl Clone for Token2022Config
impl Clone for Token2022Config
Source§fn clone(&self) -> Token2022Config
fn clone(&self) -> Token2022Config
Returns a duplicate of the value. Read more
1.0.0 · 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 Token2022Config
impl Debug for Token2022Config
Source§impl Default for Token2022Config
impl Default for Token2022Config
Source§impl<'de> Deserialize<'de> for Token2022Config
impl<'de> Deserialize<'de> for Token2022Config
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for Token2022Config
impl Serialize for Token2022Config
Auto Trait Implementations§
impl Freeze for Token2022Config
impl RefUnwindSafe for Token2022Config
impl Send for Token2022Config
impl Sync for Token2022Config
impl Unpin for Token2022Config
impl UnsafeUnpin for Token2022Config
impl UnwindSafe for Token2022Config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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