Struct hedera::FeeSchedule
source · pub struct FeeSchedule {
pub transaction_fee_schedules: Vec<TransactionFeeSchedule>,
pub expiration_time: OffsetDateTime,
}
Expand description
The fee schedules for hedera functionality and the time at which this fee schedule will expire.
See the Hedera documentation.
Fields§
§transaction_fee_schedules: Vec<TransactionFeeSchedule>
The fee schedules per specific piece of functionality.
expiration_time: OffsetDateTime
The time this fee schedule will expire at.
Implementations§
source§impl FeeSchedule
impl FeeSchedule
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new FeeSchedule
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 Clone for FeeSchedule
impl Clone for FeeSchedule
source§fn clone(&self) -> FeeSchedule
fn clone(&self) -> FeeSchedule
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 FeeSchedule
impl Debug for FeeSchedule
source§impl PartialEq for FeeSchedule
impl PartialEq for FeeSchedule
source§fn eq(&self, other: &FeeSchedule) -> bool
fn eq(&self, other: &FeeSchedule) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FeeSchedule
impl StructuralPartialEq for FeeSchedule
Auto Trait Implementations§
impl Freeze for FeeSchedule
impl RefUnwindSafe for FeeSchedule
impl Send for FeeSchedule
impl Sync for FeeSchedule
impl Unpin for FeeSchedule
impl UnwindSafe for FeeSchedule
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