#[repr(u8)]pub enum ExtensionType {
Show 33 variants
Placeholder0 = 0,
Placeholder1 = 1,
Placeholder2 = 2,
Placeholder3 = 3,
Placeholder4 = 4,
Placeholder5 = 5,
Placeholder6 = 6,
Placeholder7 = 7,
Placeholder8 = 8,
Placeholder9 = 9,
Placeholder10 = 10,
Placeholder11 = 11,
Placeholder12 = 12,
Placeholder13 = 13,
Placeholder14 = 14,
Placeholder15 = 15,
Placeholder16 = 16,
Placeholder17 = 17,
Placeholder18 = 18,
TokenMetadata = 19,
Placeholder20 = 20,
Placeholder21 = 21,
Placeholder22 = 22,
Placeholder23 = 23,
Placeholder24 = 24,
Placeholder25 = 25,
Placeholder26 = 26,
PausableAccount = 27,
PermanentDelegateAccount = 28,
TransferFeeAccount = 29,
TransferHookAccount = 30,
CompressedOnly = 31,
Compressible = 32,
}Variants§
Placeholder0 = 0
Placeholder1 = 1
Placeholder2 = 2
Placeholder3 = 3
Placeholder4 = 4
Placeholder5 = 5
Placeholder6 = 6
Placeholder7 = 7
Placeholder8 = 8
Placeholder9 = 9
Placeholder10 = 10
Placeholder11 = 11
Placeholder12 = 12
Placeholder13 = 13
Placeholder14 = 14
Placeholder15 = 15
Placeholder16 = 16
Placeholder17 = 17
Placeholder18 = 18
TokenMetadata = 19
Mint contains token-metadata. Unlike token22 there is no metadata pointer.
Placeholder20 = 20
Placeholder21 = 21
Placeholder22 = 22
Placeholder23 = 23
Placeholder24 = 24
Placeholder25 = 25
Placeholder26 = 26
Reserved for Token-2022 Pausable compatibility
PausableAccount = 27
Marker extension indicating the account belongs to a pausable mint. When the SPL mint has PausableConfig and is paused, token operations are blocked.
PermanentDelegateAccount = 28
Marker extension indicating the account belongs to a mint with permanent delegate. When the SPL mint has PermanentDelegate extension, the delegate can transfer/burn any tokens.
TransferFeeAccount = 29
Transfer fee extension storing withheld fees from transfers.
TransferHookAccount = 30
Marker extension indicating the account belongs to a mint with transfer hook. We only support mints where program_id is nil (no hook invoked).
CompressedOnly = 31
CompressedOnly extension for compressed token accounts. Marks account as decompress-only (cannot be transferred) and stores delegated amount.
Compressible = 32
Account contains compressible timing data and rent authority
Trait Implementations§
Source§impl BorshDeserialize for ExtensionType
impl BorshDeserialize for ExtensionType
fn deserialize_reader<R: Read>(reader: &mut R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for ExtensionType
impl BorshSerialize for ExtensionType
Source§impl Clone for ExtensionType
impl Clone for ExtensionType
Source§fn clone(&self) -> ExtensionType
fn clone(&self) -> ExtensionType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ExtensionType
impl Debug for ExtensionType
Source§impl EnumExt for ExtensionType
impl EnumExt for ExtensionType
Source§impl PartialEq for ExtensionType
impl PartialEq for ExtensionType
Source§impl TryFrom<u8> for ExtensionType
impl TryFrom<u8> for ExtensionType
impl Copy for ExtensionType
impl Eq for ExtensionType
impl StructuralPartialEq for ExtensionType
Auto Trait Implementations§
impl Freeze for ExtensionType
impl RefUnwindSafe for ExtensionType
impl Send for ExtensionType
impl Sync for ExtensionType
impl Unpin for ExtensionType
impl UnwindSafe for ExtensionType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> HashToFieldSize for Twhere
T: BorshSerialize,
impl<T> HashToFieldSize for Twhere
T: BorshSerialize,
fn hash_to_field_size(&self) -> Result<[u8; 32], HasherError>
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>
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>
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