pub struct Cost {
pub amount: f64,
pub currency: String,
}Expand description
Cost information for a session. The schema’s
Cost is { amount, currency }; the typed
form is the same shape.
PartialEq only — f64 does not implement
Eq because of NaN, so the type opts out of
the stronger equality.
Fields§
§amount: f64Total cumulative cost for the session.
The schema’s format: "double"; the typed
form is f64.
currency: StringISO 4217 currency code (e.g., “USD”, “EUR”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Cost
impl<'de> Deserialize<'de> for Cost
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 StructuralPartialEq for Cost
Auto Trait Implementations§
impl Freeze for Cost
impl RefUnwindSafe for Cost
impl Send for Cost
impl Sync for Cost
impl Unpin for Cost
impl UnsafeUnpin for Cost
impl UnwindSafe for Cost
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