Struct hedera::FeeSchedules
source · pub struct FeeSchedules {
pub current: Option<FeeSchedule>,
pub next: Option<FeeSchedule>,
}
Expand description
Contains the current and next FeeSchedule
s.
See the Hedera documentation
Fields§
§current: Option<FeeSchedule>
The current fee schedule.
next: Option<FeeSchedule>
The next fee schedule.
Implementations§
source§impl FeeSchedules
impl FeeSchedules
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new FeeSchedules
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 FeeSchedules
impl Clone for FeeSchedules
source§fn clone(&self) -> FeeSchedules
fn clone(&self) -> FeeSchedules
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 FeeSchedules
impl Debug for FeeSchedules
source§impl PartialEq for FeeSchedules
impl PartialEq for FeeSchedules
source§fn eq(&self, other: &FeeSchedules) -> bool
fn eq(&self, other: &FeeSchedules) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for FeeSchedules
impl StructuralPartialEq for FeeSchedules
Auto Trait Implementations§
impl Freeze for FeeSchedules
impl RefUnwindSafe for FeeSchedules
impl Send for FeeSchedules
impl Sync for FeeSchedules
impl Unpin for FeeSchedules
impl UnwindSafe for FeeSchedules
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