pub struct CompressedTokenInstructionDataTransfer {
pub proof: Option<CompressedProof>,
pub root_indices: Vec<u16>,
pub mint: Pubkey,
pub signer_is_delegate: bool,
pub input_token_data_with_context: Vec<InputTokenDataWithContext>,
pub output_compressed_accounts: Vec<TokenTransferOutputData>,
pub output_state_merkle_tree_account_indices: Vec<u8>,
pub is_compress: bool,
pub compression_amount: Option<u64>,
pub cpi_context: Option<CompressedCpiContext>,
}Fields§
§proof: Option<CompressedProof>§root_indices: Vec<u16>§mint: Pubkey§signer_is_delegate: bool§input_token_data_with_context: Vec<InputTokenDataWithContext>§output_compressed_accounts: Vec<TokenTransferOutputData>§output_state_merkle_tree_account_indices: Vec<u8>§is_compress: bool§compression_amount: Option<u64>§cpi_context: Option<CompressedCpiContext>Implementations§
source§impl CompressedTokenInstructionDataTransfer
impl CompressedTokenInstructionDataTransfer
pub fn get_input_compressed_accounts_with_merkle_context_and_check_signer( &self, signer: &Pubkey, remaining_accounts: &[AccountInfo<'_>] ) -> Result<(Vec<PackedCompressedAccountWithMerkleContext>, Vec<TokenData>)>
Trait Implementations§
source§impl BorshDeserialize for CompressedTokenInstructionDataTransferwhere
Option<CompressedProof>: BorshDeserialize,
Vec<u16>: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
Vec<InputTokenDataWithContext>: BorshDeserialize,
Vec<TokenTransferOutputData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<CompressedCpiContext>: BorshDeserialize,
impl BorshDeserialize for CompressedTokenInstructionDataTransferwhere
Option<CompressedProof>: BorshDeserialize,
Vec<u16>: BorshDeserialize,
Pubkey: BorshDeserialize,
bool: BorshDeserialize,
Vec<InputTokenDataWithContext>: BorshDeserialize,
Vec<TokenTransferOutputData>: BorshDeserialize,
Vec<u8>: BorshDeserialize,
Option<u64>: BorshDeserialize,
Option<CompressedCpiContext>: 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 CompressedTokenInstructionDataTransferwhere
Option<CompressedProof>: BorshSerialize,
Vec<u16>: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
Vec<InputTokenDataWithContext>: BorshSerialize,
Vec<TokenTransferOutputData>: BorshSerialize,
Vec<u8>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<CompressedCpiContext>: BorshSerialize,
impl BorshSerialize for CompressedTokenInstructionDataTransferwhere
Option<CompressedProof>: BorshSerialize,
Vec<u16>: BorshSerialize,
Pubkey: BorshSerialize,
bool: BorshSerialize,
Vec<InputTokenDataWithContext>: BorshSerialize,
Vec<TokenTransferOutputData>: BorshSerialize,
Vec<u8>: BorshSerialize,
Option<u64>: BorshSerialize,
Option<CompressedCpiContext>: BorshSerialize,
source§impl Clone for CompressedTokenInstructionDataTransfer
impl Clone for CompressedTokenInstructionDataTransfer
source§fn clone(&self) -> CompressedTokenInstructionDataTransfer
fn clone(&self) -> CompressedTokenInstructionDataTransfer
Returns a copy 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 moreAuto Trait Implementations§
impl Freeze for CompressedTokenInstructionDataTransfer
impl RefUnwindSafe for CompressedTokenInstructionDataTransfer
impl Send for CompressedTokenInstructionDataTransfer
impl Sync for CompressedTokenInstructionDataTransfer
impl Unpin for CompressedTokenInstructionDataTransfer
impl UnwindSafe for CompressedTokenInstructionDataTransfer
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