Type Alias hedera::AnyCustomFee

source ·
pub type AnyCustomFee = CustomFee<Fee>;
Expand description

Any CustomFee.

See the documentation for CustomFee and Fee.

Aliased Type§

struct AnyCustomFee {
    pub fee: Fee,
    pub fee_collector_account_id: Option<AccountId>,
    pub all_collectors_are_exempt: bool,
}

Fields§

§fee: Fee

The fee to be charged

§fee_collector_account_id: Option<AccountId>

The account to receive the custom fee.

§all_collectors_are_exempt: bool

If true, fee fcollectors are not charged this fee for transfers.

Implementations§

source§

impl AnyCustomFee

source

pub fn from_bytes(bytes: &[u8]) -> Result<Self>

Create AnyCustomFee from protobuf-encoded bytes.

§Errors
source

pub fn to_bytes(&self) -> Vec<u8>

Convert self to a protobuf-encoded Vec<u8>.

Trait Implementations§

source§

impl From<CustomFee<FixedFeeData>> for AnyCustomFee

source§

fn from(v: FixedFee) -> Self

Converts to this type from the input type.
source§

impl From<CustomFee<FractionalFeeData>> for AnyCustomFee

source§

fn from(v: FractionalFee) -> Self

Converts to this type from the input type.
source§

impl From<CustomFee<RoyaltyFeeData>> for AnyCustomFee

source§

fn from(v: RoyaltyFee) -> Self

Converts to this type from the input type.