pub enum Fee {
Fixed(FixedFeeData),
Fractional(FractionalFeeData),
Royalty(RoyaltyFeeData),
}
Expand description
Represents the possible fee types.
Variants§
Fixed(FixedFeeData)
A fee using a fixed amount.
Fractional(FractionalFeeData)
A fee using a fraction of the amount sent.
Royalty(RoyaltyFeeData)
A royalty fee for NFT transfers.
Trait Implementations§
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 From<FractionalFeeData> for Fee
impl From<FractionalFeeData> for Fee
source§fn from(v: FractionalFeeData) -> Self
fn from(v: FractionalFeeData) -> Self
Converts to this type from the input type.
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.
impl Eq for Fee
impl StructuralPartialEq for Fee
Auto Trait Implementations§
impl Freeze for Fee
impl RefUnwindSafe for Fee
impl Send for Fee
impl Sync for Fee
impl Unpin for Fee
impl UnwindSafe for Fee
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