pub struct CostCache {
pub read: f64,
pub write: f64,
}Expand description
Cache cost information.
Fields§
§read: f64Cost per cache-read token.
write: f64Cost per cache-write token.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CostCache
impl<'de> Deserialize<'de> for CostCache
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 CostCache
Auto Trait Implementations§
impl Freeze for CostCache
impl RefUnwindSafe for CostCache
impl Send for CostCache
impl Sync for CostCache
impl Unpin for CostCache
impl UnwindSafe for CostCache
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