Struct hedera::FractionalFeeData
source · pub struct FractionalFeeData {
pub denominator: u64,
pub numerator: u64,
pub minimum_amount: i64,
pub maximum_amount: i64,
pub assessment_method: FeeAssessmentMethod,
}
Expand description
A fraction of the transferred units of a token to assess as a fee. The amount assessed will never
be less than the given minimum_amount
, and never greater than the given maximum_amount
. The
denomination is always units of the token to which this fractional fee is attached.
Fields§
§denominator: u64
The denominator of the fraction of transferred units to assess as a fee
numerator: u64
The numerator of the fraction of transferred units to assess as a fee
minimum_amount: i64
The minimum amount to assess
maximum_amount: i64
The maximum amount to assess (zero implies no maximum)
assessment_method: FeeAssessmentMethod
If Exclusive
,
assesses the fee to the sender,
so the receiver gets the full amount from the token transfer list,
and the sender is charged an additional fee;
if Inclusive
, the receiver does NOT get
the full amount,
but only what is left over after paying the fractional fee.
Trait Implementations§
source§impl Clone for FractionalFeeData
impl Clone for FractionalFeeData
source§fn clone(&self) -> FractionalFeeData
fn clone(&self) -> FractionalFeeData
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for FractionalFeeData
impl Debug for FractionalFeeData
source§impl From<FractionalFeeData> for Fee
impl From<FractionalFeeData> for Fee
source§fn from(v: FractionalFeeData) -> Self
fn from(v: FractionalFeeData) -> Self
source§impl Hash for FractionalFeeData
impl Hash for FractionalFeeData
source§impl PartialEq for FractionalFeeData
impl PartialEq for FractionalFeeData
source§fn eq(&self, other: &FractionalFeeData) -> bool
fn eq(&self, other: &FractionalFeeData) -> bool
self
and other
values to be equal, and is used
by ==
.impl Eq for FractionalFeeData
impl StructuralPartialEq for FractionalFeeData
Auto Trait Implementations§
impl Freeze for FractionalFeeData
impl RefUnwindSafe for FractionalFeeData
impl Send for FractionalFeeData
impl Sync for FractionalFeeData
impl Unpin for FractionalFeeData
impl UnwindSafe for FractionalFeeData
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
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request