pub struct PricingSnapshot {
pub model_name: String,
pub currency: String,
pub input_price_per_1k: Decimal,
pub output_price_per_1k: Decimal,
}Expand description
价格快照:请求开始时固化,不可变
Fields§
§model_name: String§currency: String§input_price_per_1k: Decimal§output_price_per_1k: DecimalImplementations§
Trait Implementations§
Source§impl Clone for PricingSnapshot
impl Clone for PricingSnapshot
Source§fn clone(&self) -> PricingSnapshot
fn clone(&self) -> PricingSnapshot
Returns a duplicate of the value. Read more
1.0.0 · 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 PricingSnapshot
impl Debug for PricingSnapshot
Source§impl Default for PricingSnapshot
impl Default for PricingSnapshot
Source§impl<'de> Deserialize<'de> for PricingSnapshot
impl<'de> Deserialize<'de> for PricingSnapshot
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
Auto Trait Implementations§
impl Freeze for PricingSnapshot
impl RefUnwindSafe for PricingSnapshot
impl Send for PricingSnapshot
impl Sync for PricingSnapshot
impl Unpin for PricingSnapshot
impl UnsafeUnpin for PricingSnapshot
impl UnwindSafe for PricingSnapshot
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