Struct hedera::ExchangeRates
source · pub struct ExchangeRates {
pub current_rate: ExchangeRate,
pub next_rate: ExchangeRate,
}
Expand description
The current and next exchange rates between Hbar
and USD-cents.
Fields§
§current_rate: ExchangeRate
The current exchange rate between Hbar
and USD-cents.
next_rate: ExchangeRate
The next exchange rate between Hbar
and USD-cents.
Implementations§
source§impl ExchangeRates
impl ExchangeRates
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new ExchangeRates
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 ExchangeRates
impl Clone for ExchangeRates
source§fn clone(&self) -> ExchangeRates
fn clone(&self) -> ExchangeRates
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 moreAuto Trait Implementations§
impl Freeze for ExchangeRates
impl RefUnwindSafe for ExchangeRates
impl Send for ExchangeRates
impl Sync for ExchangeRates
impl Unpin for ExchangeRates
impl UnwindSafe for ExchangeRates
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<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