Struct spl_token_2022::extension::transfer_fee::TransferFeeAmount
source · [−]#[repr(C)]pub struct TransferFeeAmount {
pub withheld_amount: PodU64,
}
Expand description
Transfer fee extension data for accounts.
Fields
withheld_amount: PodU64
Amount withheld during transfers, to be harvested to the mint
Implementations
sourceimpl TransferFeeAmount
impl TransferFeeAmount
sourcepub fn closable(&self) -> ProgramResult
pub fn closable(&self) -> ProgramResult
Check if the extension is in a closable state
Trait Implementations
sourceimpl Clone for TransferFeeAmount
impl Clone for TransferFeeAmount
sourcefn clone(&self) -> TransferFeeAmount
fn clone(&self) -> TransferFeeAmount
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for TransferFeeAmount
impl Debug for TransferFeeAmount
sourceimpl Default for TransferFeeAmount
impl Default for TransferFeeAmount
sourcefn default() -> TransferFeeAmount
fn default() -> TransferFeeAmount
Returns the “default value” for a type. Read more
sourceimpl Extension for TransferFeeAmount
impl Extension for TransferFeeAmount
sourceconst TYPE: ExtensionType
const TYPE: ExtensionType
Associated extension type enum, checked at the start of TLV entries
sourceimpl PartialEq<TransferFeeAmount> for TransferFeeAmount
impl PartialEq<TransferFeeAmount> for TransferFeeAmount
sourcefn eq(&self, other: &TransferFeeAmount) -> bool
fn eq(&self, other: &TransferFeeAmount) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransferFeeAmount) -> bool
fn ne(&self, other: &TransferFeeAmount) -> bool
This method tests for !=
.
impl Copy for TransferFeeAmount
impl Pod for TransferFeeAmount
impl StructuralPartialEq for TransferFeeAmount
Auto Trait Implementations
impl RefUnwindSafe for TransferFeeAmount
impl Send for TransferFeeAmount
impl Sync for TransferFeeAmount
impl Unpin for TransferFeeAmount
impl UnwindSafe for TransferFeeAmount
Blanket Implementations
impl<T> AbiExample for T
impl<T> AbiExample for T
default fn example() -> T
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more