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 = ElGamalError
type Error = ElGamalError
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 StructuralPartialEq for FeeEncryption
Auto Trait Implementations§
impl Freeze for FeeEncryption
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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