pub struct CostBreakdown {
pub input_cost_usd: Option<String>,
pub output_cost_usd: Option<String>,
pub cache_read_cost_usd: Option<String>,
pub cache_creation_cost_usd: Option<String>,
pub service_tier_multiplier: Option<String>,
pub provider_cost_multiplier: Option<String>,
pub total_cost_usd: Option<String>,
pub confidence: CostConfidence,
pub pricing_source: Option<String>,
/* private fields */
}Fields§
§input_cost_usd: Option<String>§output_cost_usd: Option<String>§cache_read_cost_usd: Option<String>§cache_creation_cost_usd: Option<String>§service_tier_multiplier: Option<String>§provider_cost_multiplier: Option<String>§total_cost_usd: Option<String>§confidence: CostConfidence§pricing_source: Option<String>Implementations§
Source§impl CostBreakdown
impl CostBreakdown
pub fn unknown() -> Self
pub fn is_unknown(&self) -> bool
pub fn total_cost_femto_usd(&self) -> Option<i128>
pub fn display_total(&self) -> String
pub fn display_total_with_confidence(&self) -> String
Trait Implementations§
Source§impl Clone for CostBreakdown
impl Clone for CostBreakdown
Source§fn clone(&self) -> CostBreakdown
fn clone(&self) -> CostBreakdown
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 CostBreakdown
impl Debug for CostBreakdown
Source§impl Default for CostBreakdown
impl Default for CostBreakdown
Source§impl<'de> Deserialize<'de> for CostBreakdown
impl<'de> Deserialize<'de> for CostBreakdown
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 CostBreakdown
impl PartialEq for CostBreakdown
Source§fn eq(&self, other: &CostBreakdown) -> bool
fn eq(&self, other: &CostBreakdown) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CostBreakdown
impl Serialize for CostBreakdown
impl Eq for CostBreakdown
impl StructuralPartialEq for CostBreakdown
Auto Trait Implementations§
impl Freeze for CostBreakdown
impl RefUnwindSafe for CostBreakdown
impl Send for CostBreakdown
impl Sync for CostBreakdown
impl Unpin for CostBreakdown
impl UnsafeUnpin for CostBreakdown
impl UnwindSafe for CostBreakdown
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.