Struct spl_token_2022::extension::confidential_transfer::instruction::DepositInstructionData
source · #[repr(C)]pub struct DepositInstructionData {
pub amount: PodU64,
pub decimals: u8,
}
Expand description
Data expected by ConfidentialTransferInstruction::Deposit
Fields§
§amount: PodU64
The amount of tokens to deposit
decimals: u8
Expected number of base 10 digits to the right of the decimal place
Trait Implementations§
source§impl Clone for DepositInstructionData
impl Clone for DepositInstructionData
source§fn clone(&self) -> DepositInstructionData
fn clone(&self) -> DepositInstructionData
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 moresource§impl Debug for DepositInstructionData
impl Debug for DepositInstructionData
source§impl PartialEq for DepositInstructionData
impl PartialEq for DepositInstructionData
source§fn eq(&self, other: &DepositInstructionData) -> bool
fn eq(&self, other: &DepositInstructionData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DepositInstructionData
impl Pod for DepositInstructionData
impl StructuralPartialEq for DepositInstructionData
Auto Trait Implementations§
impl RefUnwindSafe for DepositInstructionData
impl Send for DepositInstructionData
impl Sync for DepositInstructionData
impl Unpin for DepositInstructionData
impl UnwindSafe for DepositInstructionData
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> CheckedBitPattern for Twhere
T: AnyBitPattern,
impl<T> CheckedBitPattern for Twhere
T: AnyBitPattern,
§type Bits = T
type Bits = T
Self
must have the same layout as the specified Bits
except for
the possible invalid bit patterns being checked during
is_valid_bit_pattern
.source§fn is_valid_bit_pattern(_bits: &T) -> bool
fn is_valid_bit_pattern(_bits: &T) -> bool
If this function returns true, then it must be valid to reinterpret
bits
as &Self
.