Enum hedera::FeeAssessmentMethod
source · pub enum FeeAssessmentMethod {
Inclusive,
Exclusive,
}
Expand description
Enum for the fee assessment method.
The terminology here (exclusive vs inclusive) is borrowed from tax assessment.
Variants§
Inclusive
The recipient recieves the transfer amount, minus the fee.
If Alice is paying Bob, and an Inclusive
fractional fee is collected to be sent to Charlie,
the amount Alice declares she will pay in the transfer transaction includes the fee amount.
Exclusive
The recipient recieves the whole transfer amount, and an extra fee is charged to the sender.
If Alice is paying Bob, and an Exclusive
fractional fee is collected to be sent to Charlie,
the amount Alice declares she will pay in the transfer transaction does not include the fee amount.
Trait Implementations§
source§impl Clone for FeeAssessmentMethod
impl Clone for FeeAssessmentMethod
source§fn clone(&self) -> FeeAssessmentMethod
fn clone(&self) -> FeeAssessmentMethod
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 FeeAssessmentMethod
impl Debug for FeeAssessmentMethod
source§impl Hash for FeeAssessmentMethod
impl Hash for FeeAssessmentMethod
source§impl PartialEq for FeeAssessmentMethod
impl PartialEq for FeeAssessmentMethod
source§fn eq(&self, other: &FeeAssessmentMethod) -> bool
fn eq(&self, other: &FeeAssessmentMethod) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for FeeAssessmentMethod
impl Eq for FeeAssessmentMethod
impl StructuralPartialEq for FeeAssessmentMethod
Auto Trait Implementations§
impl Freeze for FeeAssessmentMethod
impl RefUnwindSafe for FeeAssessmentMethod
impl Send for FeeAssessmentMethod
impl Sync for FeeAssessmentMethod
impl Unpin for FeeAssessmentMethod
impl UnwindSafe for FeeAssessmentMethod
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<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
Compare self to
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
Compare self to
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>
Wrap the input message
T
in a tonic::Request