pub struct TariffQuote {
pub unit: UnitRef,
pub price_minor_lo: u64,
pub price_minor_hi: u64,
pub expires_at: u64,
pub catalog_version: String,
pub max_quantum: u64,
}Expand description
A server-owned priced quote with a finite maximum quantum.
Fields§
§unit: UnitRefThe unit that will be issued/debited.
price_minor_lo: u64Price in minor units (u128 as hi/lo).
price_minor_hi: u64§expires_at: u64Quote expiry (unix seconds). The reservation must be placed before this.
catalog_version: StringThe catalog version this quote was computed against.
max_quantum: u64Server-imposed ceiling on the quantum for a single operation.
Implementations§
Source§impl TariffQuote
impl TariffQuote
Trait Implementations§
Source§impl Clone for TariffQuote
impl Clone for TariffQuote
Source§fn clone(&self) -> TariffQuote
fn clone(&self) -> TariffQuote
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TariffQuote
impl Debug for TariffQuote
Source§impl<'de> Deserialize<'de> for TariffQuote
impl<'de> Deserialize<'de> for TariffQuote
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for TariffQuote
impl PartialEq for TariffQuote
Source§fn eq(&self, other: &TariffQuote) -> bool
fn eq(&self, other: &TariffQuote) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TariffQuote
impl Serialize for TariffQuote
impl Eq for TariffQuote
impl StructuralPartialEq for TariffQuote
Auto Trait Implementations§
impl Freeze for TariffQuote
impl RefUnwindSafe for TariffQuote
impl Send for TariffQuote
impl Sync for TariffQuote
impl Unpin for TariffQuote
impl UnsafeUnpin for TariffQuote
impl UnwindSafe for TariffQuote
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