Type Alias hedera::AnyCustomFee
source · pub type AnyCustomFee = CustomFee<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
impl AnyCustomFee
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create AnyCustomFee
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
source§impl From<CustomFee<FixedFeeData>> for AnyCustomFee
impl From<CustomFee<FixedFeeData>> for AnyCustomFee
source§impl From<CustomFee<FractionalFeeData>> for AnyCustomFee
impl From<CustomFee<FractionalFeeData>> for AnyCustomFee
source§fn from(v: FractionalFee) -> Self
fn from(v: FractionalFee) -> Self
Converts to this type from the input type.
source§impl From<CustomFee<RoyaltyFeeData>> for AnyCustomFee
impl From<CustomFee<RoyaltyFeeData>> for AnyCustomFee
source§fn from(v: RoyaltyFee) -> Self
fn from(v: RoyaltyFee) -> Self
Converts to this type from the input type.