pub struct FeeData {
pub node: FeeComponents,
pub network: FeeComponents,
pub service: FeeComponents,
pub kind: FeeDataType,
}
Expand description
The total fees charged for a transaction, consisting of 3 parts: The node fee, the network fee, and the service fee.
Fields§
§node: FeeComponents
Fee charged by the node for this functionality.
network: FeeComponents
Fee charged by Hedera for network operations.
service: FeeComponents
Fee charged by Hedera for providing the service.
kind: FeeDataType
A subtype distinguishing between different types of fee data correlating to the same hedera functionality.
Implementations§
source§impl FeeData
impl FeeData
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new FeeData
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 PartialEq for FeeData
impl PartialEq for FeeData
impl Eq for FeeData
impl StructuralPartialEq for FeeData
Auto Trait Implementations§
impl Freeze for FeeData
impl RefUnwindSafe for FeeData
impl Send for FeeData
impl Sync for FeeData
impl Unpin for FeeData
impl UnwindSafe for FeeData
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