Struct hedera::FixedFeeData
source · pub struct FixedFeeData {
pub amount: i64,
pub denominating_token_id: Option<TokenId>,
}
Expand description
A fixed number of units (hbar or token) to assess as a fee during a CryptoTransfer
that transfers
units of the token to which this fixed fee is attached.
Fields§
§amount: i64
The number of units to assess as a fee
denominating_token_id: Option<TokenId>
The denomination of the fee; taken as hbar if left unset and, in a TokenCreate, taken as the id of the newly created token if set to the sentinel value of 0.0.0
Implementations§
Trait Implementations§
source§impl Clone for FixedFeeData
impl Clone for FixedFeeData
source§fn clone(&self) -> FixedFeeData
fn clone(&self) -> FixedFeeData
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 FixedFeeData
impl Debug for FixedFeeData
source§impl From<FixedFeeData> for Fee
impl From<FixedFeeData> for Fee
source§fn from(v: FixedFeeData) -> Self
fn from(v: FixedFeeData) -> Self
Converts to this type from the input type.
source§impl Hash for FixedFeeData
impl Hash for FixedFeeData
source§impl PartialEq for FixedFeeData
impl PartialEq for FixedFeeData
source§fn eq(&self, other: &FixedFeeData) -> bool
fn eq(&self, other: &FixedFeeData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FixedFeeData
impl StructuralPartialEq for FixedFeeData
Auto Trait Implementations§
impl Freeze for FixedFeeData
impl RefUnwindSafe for FixedFeeData
impl Send for FixedFeeData
impl Sync for FixedFeeData
impl Unpin for FixedFeeData
impl UnwindSafe for FixedFeeData
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