pub struct TextCost {
pub per_million: Decimal,
}Expand description
文本成本定义 (每百万 Tokens/字符)
Fields§
§per_million: Decimal每百万单位的价格
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TextCost
impl<'de> Deserialize<'de> for TextCost
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 TextCost
impl RefUnwindSafe for TextCost
impl Send for TextCost
impl Sync for TextCost
impl Unpin for TextCost
impl UnsafeUnpin for TextCost
impl UnwindSafe for TextCost
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