#[repr(C)]pub enum Action {
MintToCompressed(MintToCompressedAction),
UpdateMintAuthority(UpdateAuthority),
UpdateFreezeAuthority(UpdateAuthority),
MintTo(MintToAction),
UpdateMetadataField(UpdateMetadataFieldAction),
UpdateMetadataAuthority(UpdateMetadataAuthorityAction),
RemoveMetadataKey(RemoveMetadataKeyAction),
DecompressMint(DecompressMintAction),
CompressAndCloseMint(CompressAndCloseMintAction),
}Variants§
MintToCompressed(MintToCompressedAction)
Mint compressed tokens to compressed accounts.
UpdateMintAuthority(UpdateAuthority)
Update mint authority of a compressed mint account.
UpdateFreezeAuthority(UpdateAuthority)
Update freeze authority of a compressed mint account.
MintTo(MintToAction)
Mint tokens from a compressed mint to a token solana account (tokens are not compressed but not spl tokens).
UpdateMetadataField(UpdateMetadataFieldAction)
UpdateMetadataAuthority(UpdateMetadataAuthorityAction)
RemoveMetadataKey(RemoveMetadataKeyAction)
DecompressMint(DecompressMintAction)
Decompress a compressed mint to a Mint Solana account. Creates a Mint PDA that becomes the source of truth.
CompressAndCloseMint(CompressAndCloseMintAction)
Compress and close a Mint Solana account. The compressed mint state is preserved. Permissionless - anyone can call if is_compressible() returns true (rent expired).
Trait Implementations§
Source§impl BorshDeserialize for Actionwhere
MintToCompressedAction: BorshDeserialize,
UpdateAuthority: BorshDeserialize,
MintToAction: BorshDeserialize,
UpdateMetadataFieldAction: BorshDeserialize,
UpdateMetadataAuthorityAction: BorshDeserialize,
RemoveMetadataKeyAction: BorshDeserialize,
DecompressMintAction: BorshDeserialize,
CompressAndCloseMintAction: BorshDeserialize,
impl BorshDeserialize for Actionwhere
MintToCompressedAction: BorshDeserialize,
UpdateAuthority: BorshDeserialize,
MintToAction: BorshDeserialize,
UpdateMetadataFieldAction: BorshDeserialize,
UpdateMetadataAuthorityAction: BorshDeserialize,
RemoveMetadataKeyAction: BorshDeserialize,
DecompressMintAction: BorshDeserialize,
CompressAndCloseMintAction: BorshDeserialize,
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>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for Actionwhere
MintToCompressedAction: BorshSerialize,
UpdateAuthority: BorshSerialize,
MintToAction: BorshSerialize,
UpdateMetadataFieldAction: BorshSerialize,
UpdateMetadataAuthorityAction: BorshSerialize,
RemoveMetadataKeyAction: BorshSerialize,
DecompressMintAction: BorshSerialize,
CompressAndCloseMintAction: BorshSerialize,
impl BorshSerialize for Actionwhere
MintToCompressedAction: BorshSerialize,
UpdateAuthority: BorshSerialize,
MintToAction: BorshSerialize,
UpdateMetadataFieldAction: BorshSerialize,
UpdateMetadataAuthorityAction: BorshSerialize,
RemoveMetadataKeyAction: BorshSerialize,
DecompressMintAction: BorshSerialize,
CompressAndCloseMintAction: BorshSerialize,
Source§impl EnumExt for Actionwhere
MintToCompressedAction: BorshDeserialize,
UpdateAuthority: BorshDeserialize,
MintToAction: BorshDeserialize,
UpdateMetadataFieldAction: BorshDeserialize,
UpdateMetadataAuthorityAction: BorshDeserialize,
RemoveMetadataKeyAction: BorshDeserialize,
DecompressMintAction: BorshDeserialize,
CompressAndCloseMintAction: BorshDeserialize,
impl EnumExt for Actionwhere
MintToCompressedAction: BorshDeserialize,
UpdateAuthority: BorshDeserialize,
MintToAction: BorshDeserialize,
UpdateMetadataFieldAction: BorshDeserialize,
UpdateMetadataAuthorityAction: BorshDeserialize,
RemoveMetadataKeyAction: BorshDeserialize,
DecompressMintAction: BorshDeserialize,
CompressAndCloseMintAction: BorshDeserialize,
Source§impl<'a> ZeroCopyAt<'a> for Action
impl<'a> ZeroCopyAt<'a> for Action
type ZeroCopyAt = ZAction<'a>
fn zero_copy_at( data: &'a [u8], ) -> Result<(Self::ZeroCopyAt, &'a [u8]), ZeroCopyError>
Source§impl ZeroCopyStructInner for Action
impl ZeroCopyStructInner for Action
type ZeroCopyInner = ZAction<'static>
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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> 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>
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