pub struct PromptCache {
pub short: Option<f64>,
pub long: Option<f64>,
}Expand description
Prompt cache retention, in seconds.
Fields§
§short: Option<f64>§long: Option<f64>Trait Implementations§
Source§impl Clone for PromptCache
impl Clone for PromptCache
Source§impl Debug for PromptCache
impl Debug for PromptCache
Source§impl Default for PromptCache
impl Default for PromptCache
Source§impl<'de> Deserialize<'de> for PromptCache
impl<'de> Deserialize<'de> for PromptCache
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 PartialEq for PromptCache
impl PartialEq for PromptCache
Source§impl Serialize for PromptCache
impl Serialize for PromptCache
impl StructuralPartialEq for PromptCache
Auto Trait Implementations§
impl Freeze for PromptCache
impl RefUnwindSafe for PromptCache
impl Send for PromptCache
impl Sync for PromptCache
impl Unpin for PromptCache
impl UnsafeUnpin for PromptCache
impl UnwindSafe for PromptCache
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