Struct hedera::AssessedCustomFee
source · pub struct AssessedCustomFee {
pub amount: i64,
pub token_id: Option<TokenId>,
pub fee_collector_account_id: Option<AccountId>,
pub payer_account_id_list: Vec<AccountId>,
}Expand description
A custom transfer fee that was assessed during the handling of a CryptoTransfer.
Fields§
§amount: i64The amount of currency charged to each payer.
token_id: Option<TokenId>The currency amount is charged in, if None the fee is in HBar.
fee_collector_account_id: Option<AccountId>The account that receives the fees that were charged.
payer_account_id_list: Vec<AccountId>A list of all accounts that were charged this fee.
Implementations§
source§impl AssessedCustomFee
impl AssessedCustomFee
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new AssessedCustomFee from protobuf-encoded bytes.
Errors
Error::FromProtobufif decoding the bytes fails to produce a valid protobuf.Error::FromProtobufif decoding the protobuf fails.
Trait Implementations§
source§impl Clone for AssessedCustomFee
impl Clone for AssessedCustomFee
source§fn clone(&self) -> AssessedCustomFee
fn clone(&self) -> AssessedCustomFee
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 AssessedCustomFee
impl Debug for AssessedCustomFee
source§impl PartialEq for AssessedCustomFee
impl PartialEq for AssessedCustomFee
source§fn eq(&self, other: &AssessedCustomFee) -> bool
fn eq(&self, other: &AssessedCustomFee) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Eq for AssessedCustomFee
impl StructuralEq for AssessedCustomFee
impl StructuralPartialEq for AssessedCustomFee
Auto Trait Implementations§
impl RefUnwindSafe for AssessedCustomFee
impl Send for AssessedCustomFee
impl Sync for AssessedCustomFee
impl Unpin for AssessedCustomFee
impl UnwindSafe for AssessedCustomFee
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
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