pub struct InputTokenDataWithContextOnchain {
pub amount: u64,
pub delegate_index: Option<u8>,
pub merkle_context: PackedMerkleContext,
pub root_index: u16,
pub lamports: Option<u64>,
pub tlv: Option<Vec<u8>>,
}Fields§
§amount: u64§delegate_index: Option<u8>§merkle_context: PackedMerkleContext§root_index: u16§lamports: Option<u64>§tlv: Option<Vec<u8>>Placeholder for TokenExtension tlv data (unimplemented)
Trait Implementations§
Source§impl BorshDeserialize for InputTokenDataWithContextOnchain
impl BorshDeserialize for InputTokenDataWithContextOnchain
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 InputTokenDataWithContextOnchainwhere
u64: BorshSerialize,
Option<u8>: BorshSerialize,
PackedMerkleContext: BorshSerialize,
u16: BorshSerialize,
Option<u64>: BorshSerialize,
Option<Vec<u8>>: BorshSerialize,
impl BorshSerialize for InputTokenDataWithContextOnchainwhere
u64: BorshSerialize,
Option<u8>: BorshSerialize,
PackedMerkleContext: BorshSerialize,
u16: BorshSerialize,
Option<u64>: BorshSerialize,
Option<Vec<u8>>: BorshSerialize,
Source§impl Clone for InputTokenDataWithContextOnchain
impl Clone for InputTokenDataWithContextOnchain
Source§fn clone(&self) -> InputTokenDataWithContextOnchain
fn clone(&self) -> InputTokenDataWithContextOnchain
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 From<TokenAccountMeta> for InputTokenDataWithContextOnchain
impl From<TokenAccountMeta> for InputTokenDataWithContextOnchain
Source§fn from(input: TokenAccountMeta) -> Self
fn from(input: TokenAccountMeta) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputTokenDataWithContextOnchain
impl PartialEq for InputTokenDataWithContextOnchain
Source§fn eq(&self, other: &InputTokenDataWithContextOnchain) -> bool
fn eq(&self, other: &InputTokenDataWithContextOnchain) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InputTokenDataWithContextOnchain
Auto Trait Implementations§
impl Freeze for InputTokenDataWithContextOnchain
impl RefUnwindSafe for InputTokenDataWithContextOnchain
impl Send for InputTokenDataWithContextOnchain
impl Sync for InputTokenDataWithContextOnchain
impl Unpin for InputTokenDataWithContextOnchain
impl UnwindSafe for InputTokenDataWithContextOnchain
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