Struct hedera::RoyaltyFeeData
source · pub struct RoyaltyFeeData {
pub denominator: u64,
pub numerator: u64,
pub fallback_fee: Option<FixedFeeData>,
}
Expand description
A fee to assess during a CryptoTransfer
that changes ownership of an NFT. Defines the fraction of
the fungible value exchanged for an NFT that the ledger should collect as a royalty. (“Fungible
value” includes both ℏ and units of fungible HTS tokens.) When the NFT sender does not receive
any fungible value, the ledger will assess the fallback fee, if present, to the new NFT owner.
Royalty fees can only be added to tokens of type type NON_FUNGIBLE_UNIQUE
.
Fields§
§denominator: u64
The denominator of the fraction of fungible value exchanged for an NFT to collect as royalty
numerator: u64
The numerator of the fraction of fungible value exchanged for an NFT to collect as royalty
fallback_fee: Option<FixedFeeData>
If present, the fixed fee to assess to the NFT receiver when no fungible value is exchanged with the sender
Trait Implementations§
source§impl Clone for RoyaltyFeeData
impl Clone for RoyaltyFeeData
source§fn clone(&self) -> RoyaltyFeeData
fn clone(&self) -> RoyaltyFeeData
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 RoyaltyFeeData
impl Debug for RoyaltyFeeData
source§impl From<RoyaltyFeeData> for Fee
impl From<RoyaltyFeeData> for Fee
source§fn from(v: RoyaltyFeeData) -> Self
fn from(v: RoyaltyFeeData) -> Self
Converts to this type from the input type.
source§impl Hash for RoyaltyFeeData
impl Hash for RoyaltyFeeData
source§impl PartialEq for RoyaltyFeeData
impl PartialEq for RoyaltyFeeData
source§fn eq(&self, other: &RoyaltyFeeData) -> bool
fn eq(&self, other: &RoyaltyFeeData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for RoyaltyFeeData
impl StructuralPartialEq for RoyaltyFeeData
Auto Trait Implementations§
impl Freeze for RoyaltyFeeData
impl RefUnwindSafe for RoyaltyFeeData
impl Send for RoyaltyFeeData
impl Sync for RoyaltyFeeData
impl Unpin for RoyaltyFeeData
impl UnwindSafe for RoyaltyFeeData
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