pub struct ModelPriceView {
pub model_id: String,
pub display_name: Option<String>,
pub aliases: Vec<String>,
pub input_per_1m_usd: String,
pub output_per_1m_usd: String,
pub cache_read_input_per_1m_usd: Option<String>,
pub cache_creation_input_per_1m_usd: Option<String>,
pub source: String,
pub confidence: CostConfidence,
}Fields§
§model_id: String§display_name: Option<String>§aliases: Vec<String>§input_per_1m_usd: String§output_per_1m_usd: String§cache_read_input_per_1m_usd: Option<String>§cache_creation_input_per_1m_usd: Option<String>§source: String§confidence: CostConfidenceImplementations§
Source§impl ModelPriceView
impl ModelPriceView
pub fn matches_model(&self, model: &str) -> bool
Trait Implementations§
Source§impl Clone for ModelPriceView
impl Clone for ModelPriceView
Source§fn clone(&self) -> ModelPriceView
fn clone(&self) -> ModelPriceView
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 ModelPriceView
impl Debug for ModelPriceView
Source§impl<'de> Deserialize<'de> for ModelPriceView
impl<'de> Deserialize<'de> for ModelPriceView
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 From<&ModelPrice> for ModelPriceView
impl From<&ModelPrice> for ModelPriceView
Source§fn from(price: &ModelPrice) -> Self
fn from(price: &ModelPrice) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ModelPriceView
impl PartialEq for ModelPriceView
Source§fn eq(&self, other: &ModelPriceView) -> bool
fn eq(&self, other: &ModelPriceView) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ModelPriceView
impl Serialize for ModelPriceView
impl Eq for ModelPriceView
impl StructuralPartialEq for ModelPriceView
Auto Trait Implementations§
impl Freeze for ModelPriceView
impl RefUnwindSafe for ModelPriceView
impl Send for ModelPriceView
impl Sync for ModelPriceView
impl Unpin for ModelPriceView
impl UnsafeUnpin for ModelPriceView
impl UnwindSafe for ModelPriceView
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.