Struct spl_token_2022::extension::confidential_transfer::instruction::transfer::FeeEncryption
source · #[repr(C)]pub struct FeeEncryption(/* private fields */);
Implementations§
source§impl FeeEncryption
impl FeeEncryption
pub fn new( amount: u64, destination_pubkey: &ElGamalPubkey, withdraw_withheld_authority_pubkey: &ElGamalPubkey ) -> (FeeEncryption, PedersenOpening)
pub fn get_commitment(&self) -> &PedersenCommitment
pub fn get_destination_handle(&self) -> &DecryptHandle
Trait Implementations§
source§impl Clone for FeeEncryption
impl Clone for FeeEncryption
source§fn clone(&self) -> FeeEncryption
fn clone(&self) -> FeeEncryption
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 FeeEncryption
impl Debug for FeeEncryption
source§impl From<FeeEncryption> for FeeEncryption
impl From<FeeEncryption> for FeeEncryption
source§fn from(decoded_ciphertext: FeeEncryption) -> FeeEncryption
fn from(decoded_ciphertext: FeeEncryption) -> FeeEncryption
Converts to this type from the input type.
source§impl PartialEq for FeeEncryption
impl PartialEq for FeeEncryption
source§fn eq(&self, other: &FeeEncryption) -> bool
fn eq(&self, other: &FeeEncryption) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<FeeEncryption> for FeeEncryption
impl TryFrom<FeeEncryption> for FeeEncryption
§type Error = ProofError
type Error = ProofError
The type returned in the event of a conversion error.
source§fn try_from(
pod_ciphertext: FeeEncryption
) -> Result<FeeEncryption, <FeeEncryption as TryFrom<FeeEncryption>>::Error>
fn try_from( pod_ciphertext: FeeEncryption ) -> Result<FeeEncryption, <FeeEncryption as TryFrom<FeeEncryption>>::Error>
Performs the conversion.
impl Copy for FeeEncryption
impl Eq for FeeEncryption
impl StructuralEq for FeeEncryption
impl StructuralPartialEq for FeeEncryption
Auto Trait Implementations§
impl RefUnwindSafe for FeeEncryption
impl Send for FeeEncryption
impl Sync for FeeEncryption
impl Unpin for FeeEncryption
impl UnwindSafe for FeeEncryption
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more