pub struct ChatCost {
pub type: TypeTrue,
pub cost: f64,
}
Fields§
§type: TypeTrue
This is the type of cost, always ‘chat’ for this class.
cost: f64
This is the cost of the component in USD.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ChatCost
impl<'de> Deserialize<'de> for ChatCost
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 ChatCost
Auto Trait Implementations§
impl Freeze for ChatCost
impl RefUnwindSafe for ChatCost
impl Send for ChatCost
impl Sync for ChatCost
impl Unpin for ChatCost
impl UnwindSafe for ChatCost
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