Struct spl_token_2022::extension::transfer_fee::TransferFee
source · [−]#[repr(C)]pub struct TransferFee {
pub epoch: PodU64,
pub maximum_fee: PodU64,
pub transfer_fee_basis_points: PodU16,
}
Expand description
Transfer fee information
Fields
epoch: PodU64
First epoch where the transfer fee takes effect
maximum_fee: PodU64
Maximum fee assessed on transfers, expressed as an amount of tokens
transfer_fee_basis_points: PodU16
Amount of transfer collected as fees, expressed as basis points of the transfer amount, ie. increments of 0.01%
Implementations
Trait Implementations
sourceimpl Clone for TransferFee
impl Clone for TransferFee
sourcefn clone(&self) -> TransferFee
fn clone(&self) -> TransferFee
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 TransferFee
impl Debug for TransferFee
sourceimpl Default for TransferFee
impl Default for TransferFee
sourcefn default() -> TransferFee
fn default() -> TransferFee
Returns the “default value” for a type. Read more
sourceimpl PartialEq<TransferFee> for TransferFee
impl PartialEq<TransferFee> for TransferFee
sourcefn eq(&self, other: &TransferFee) -> bool
fn eq(&self, other: &TransferFee) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &TransferFee) -> bool
fn ne(&self, other: &TransferFee) -> bool
This method tests for !=
.
impl Copy for TransferFee
impl Pod for TransferFee
impl StructuralPartialEq for TransferFee
Auto Trait Implementations
impl RefUnwindSafe for TransferFee
impl Send for TransferFee
impl Sync for TransferFee
impl Unpin for TransferFee
impl UnwindSafe for TransferFee
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> CheckedBitPattern for T where
T: AnyBitPattern,
impl<T> CheckedBitPattern for T where
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
. Read more
sourcefn 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
.
impl<T> Pointable for T
impl<T> Pointable for T
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)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more