#[repr(C)]pub struct CompressibleExtensionInstructionData {
pub token_account_version: u8,
pub rent_payment: u8,
pub compression_only: u8,
pub write_top_up: u32,
pub compress_to_account_pubkey: Option<CompressToPubkey>,
}Fields§
§token_account_version: u8Version of the compressed token account when token account is compressed and closed. (The version specifies the hashing scheme.)
rent_payment: u8Rent payment in epochs. Paid once at initialization.
compression_only: u8If non-zero, the compressed token account cannot be transferred, only decompressed. Required for mints with restricted extensions (Pausable, PermanentDelegate, TransferFee, TransferHook). Must be set for compressible ATAs.
write_top_up: u32§compress_to_account_pubkey: Option<CompressToPubkey>Trait Implementations§
Source§impl BorshDeserialize for CompressibleExtensionInstructionData
impl BorshDeserialize for CompressibleExtensionInstructionData
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 Clone for CompressibleExtensionInstructionData
impl Clone for CompressibleExtensionInstructionData
Source§fn clone(&self) -> CompressibleExtensionInstructionData
fn clone(&self) -> CompressibleExtensionInstructionData
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 PartialEq for CompressibleExtensionInstructionData
impl PartialEq for CompressibleExtensionInstructionData
Source§fn eq(&self, other: &CompressibleExtensionInstructionData) -> bool
fn eq(&self, other: &CompressibleExtensionInstructionData) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> ZeroCopyAt<'a> for CompressibleExtensionInstructionData
impl<'a> ZeroCopyAt<'a> for CompressibleExtensionInstructionData
type ZeroCopyAt = ZCompressibleExtensionInstructionData<'a>
fn zero_copy_at( __remaining_bytes: &'a [u8], ) -> Result<(Self::ZeroCopyAt, &'a [u8]), ZeroCopyError>
Source§impl<'a> ZeroCopyAtMut<'a> for CompressibleExtensionInstructionData
impl<'a> ZeroCopyAtMut<'a> for CompressibleExtensionInstructionData
type ZeroCopyAtMut = ZCompressibleExtensionInstructionDataMut<'a>
fn zero_copy_at_mut( __remaining_bytes: &'a mut [u8], ) -> Result<(Self::ZeroCopyAtMut, &'a mut [u8]), ZeroCopyError>
Source§impl<'a> ZeroCopyNew<'a> for CompressibleExtensionInstructionData
impl<'a> ZeroCopyNew<'a> for CompressibleExtensionInstructionData
Source§type ZeroCopyConfig = CompressibleExtensionInstructionDataConfig
type ZeroCopyConfig = CompressibleExtensionInstructionDataConfig
Configuration type needed to initialize this type
Source§type Output = <CompressibleExtensionInstructionData as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
type Output = <CompressibleExtensionInstructionData as ZeroCopyAtMut<'a>>::ZeroCopyAtMut
Output type - the mutable zero-copy view of this type
Source§fn byte_len(config: &Self::ZeroCopyConfig) -> Result<usize, ZeroCopyError>
fn byte_len(config: &Self::ZeroCopyConfig) -> Result<usize, ZeroCopyError>
Calculate the byte length needed for this type with the given configuration Read more
Source§fn new_zero_copy(
__remaining_bytes: &'a mut [u8],
config: Self::ZeroCopyConfig,
) -> Result<(Self::Output, &'a mut [u8]), ZeroCopyError>
fn new_zero_copy( __remaining_bytes: &'a mut [u8], config: Self::ZeroCopyConfig, ) -> Result<(Self::Output, &'a mut [u8]), ZeroCopyError>
Initialize this type in a mutable byte slice with the given configuration Read more
Source§impl ZeroCopyStructInner for CompressibleExtensionInstructionData
impl ZeroCopyStructInner for CompressibleExtensionInstructionData
type ZeroCopyInner = ZCompressibleExtensionInstructionData<'static>
Source§impl ZeroCopyStructInnerMut for CompressibleExtensionInstructionData
impl ZeroCopyStructInnerMut for CompressibleExtensionInstructionData
type ZeroCopyInnerMut = ZCompressibleExtensionInstructionDataMut<'static>
impl Eq for CompressibleExtensionInstructionData
impl StructuralPartialEq for CompressibleExtensionInstructionData
Auto Trait Implementations§
impl Freeze for CompressibleExtensionInstructionData
impl RefUnwindSafe for CompressibleExtensionInstructionData
impl Send for CompressibleExtensionInstructionData
impl Sync for CompressibleExtensionInstructionData
impl Unpin for CompressibleExtensionInstructionData
impl UnwindSafe for CompressibleExtensionInstructionData
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