pub struct PromptCacheOptions {
pub comparison_response_id: Option<Option<String>>,
pub prewarm: Option<bool>,
pub mode: Option<PromptCachingMode>,
pub ttl: Option<PromptCacheTtl>,
pub rest: Rest,
}Fields§
§comparison_response_id: Option<Option<String>>§prewarm: Option<bool>§mode: Option<PromptCachingMode>§ttl: Option<PromptCacheTtl>§rest: RestImplementations§
Source§impl PromptCacheOptions
impl PromptCacheOptions
Sourcepub fn builder() -> PromptCacheOptionsBuilder
pub fn builder() -> PromptCacheOptionsBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for PromptCacheOptions
impl Clone for PromptCacheOptions
Source§impl Debug for PromptCacheOptions
impl Debug for PromptCacheOptions
Source§impl DeclaredFields for PromptCacheOptions
impl DeclaredFields for PromptCacheOptions
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for PromptCacheOptions
impl<'de> Deserialize<'de> for PromptCacheOptions
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 Eq for PromptCacheOptions
Source§impl PartialEq for PromptCacheOptions
impl PartialEq for PromptCacheOptions
Source§impl Serialize for PromptCacheOptions
impl Serialize for PromptCacheOptions
impl StructuralPartialEq for PromptCacheOptions
Auto Trait Implementations§
impl Freeze for PromptCacheOptions
impl RefUnwindSafe for PromptCacheOptions
impl Send for PromptCacheOptions
impl Sync for PromptCacheOptions
impl Unpin for PromptCacheOptions
impl UnsafeUnpin for PromptCacheOptions
impl UnwindSafe for PromptCacheOptions
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