pub struct PricingEstimate {
pub amount_micros_usd: u64,
}Expand description
Estimated USD pricing for usage.
Fields§
§amount_micros_usd: u64Estimated cost in micro USD units.
Implementations§
Source§impl PricingEstimate
impl PricingEstimate
Sourcepub const fn from_micros_usd(amount_micros_usd: u64) -> Self
pub const fn from_micros_usd(amount_micros_usd: u64) -> Self
Create an estimate from micro USD units.
Sourcepub const fn add_assign(&mut self, other: &Self)
pub const fn add_assign(&mut self, other: &Self)
Add another estimate into this one.
Trait Implementations§
Source§impl Clone for PricingEstimate
impl Clone for PricingEstimate
Source§fn clone(&self) -> PricingEstimate
fn clone(&self) -> PricingEstimate
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 PricingEstimate
impl Debug for PricingEstimate
Source§impl Default for PricingEstimate
impl Default for PricingEstimate
Source§fn default() -> PricingEstimate
fn default() -> PricingEstimate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PricingEstimate
impl<'de> Deserialize<'de> for PricingEstimate
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
impl Eq for PricingEstimate
Source§impl Ord for PricingEstimate
impl Ord for PricingEstimate
Source§fn cmp(&self, other: &PricingEstimate) -> Ordering
fn cmp(&self, other: &PricingEstimate) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for PricingEstimate
impl PartialEq for PricingEstimate
Source§fn eq(&self, other: &PricingEstimate) -> bool
fn eq(&self, other: &PricingEstimate) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for PricingEstimate
impl PartialOrd for PricingEstimate
Source§impl Serialize for PricingEstimate
impl Serialize for PricingEstimate
impl StructuralPartialEq for PricingEstimate
Auto Trait Implementations§
impl Freeze for PricingEstimate
impl RefUnwindSafe for PricingEstimate
impl Send for PricingEstimate
impl Sync for PricingEstimate
impl Unpin for PricingEstimate
impl UnsafeUnpin for PricingEstimate
impl UnwindSafe for PricingEstimate
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