Struct spl_token_2022::extension::confidential_transfer_fee::account_info::WithheldTokensInfo
source · #[repr(C)]pub struct WithheldTokensInfo { /* private fields */ }
Expand description
Confidential transfer fee extension information needed to construct a
WithdrawWithheldTokensFromMint
or WithdrawWithheldTokensFromAccounts
instruction.
Implementations§
source§impl WithheldTokensInfo
impl WithheldTokensInfo
sourcepub fn new(withheld_amount: &EncryptedWithheldAmount) -> Self
pub fn new(withheld_amount: &EncryptedWithheldAmount) -> Self
Create a WithheldTokensInfo
from an ElGamal ciphertext.
sourcepub fn generate_proof_data(
&self,
withdraw_withheld_authority_elgamal_keypair: &ElGamalKeypair,
destination_elgamal_pubkey: &ElGamalPubkey
) -> Result<CiphertextCiphertextEqualityProofData, TokenError>
pub fn generate_proof_data( &self, withdraw_withheld_authority_elgamal_keypair: &ElGamalKeypair, destination_elgamal_pubkey: &ElGamalPubkey ) -> Result<CiphertextCiphertextEqualityProofData, TokenError>
Create withdraw withheld proof data.
Trait Implementations§
source§impl Clone for WithheldTokensInfo
impl Clone for WithheldTokensInfo
source§fn clone(&self) -> WithheldTokensInfo
fn clone(&self) -> WithheldTokensInfo
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 WithheldTokensInfo
impl Debug for WithheldTokensInfo
source§impl Default for WithheldTokensInfo
impl Default for WithheldTokensInfo
source§fn default() -> WithheldTokensInfo
fn default() -> WithheldTokensInfo
Returns the “default value” for a type. Read more
source§impl PartialEq for WithheldTokensInfo
impl PartialEq for WithheldTokensInfo
source§fn eq(&self, other: &WithheldTokensInfo) -> bool
fn eq(&self, other: &WithheldTokensInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for WithheldTokensInfo
impl Pod for WithheldTokensInfo
impl StructuralPartialEq for WithheldTokensInfo
Auto Trait Implementations§
impl RefUnwindSafe for WithheldTokensInfo
impl Send for WithheldTokensInfo
impl Sync for WithheldTokensInfo
impl Unpin for WithheldTokensInfo
impl UnwindSafe for WithheldTokensInfo
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
.