pub struct PromptCacheOptionsBuilder(/* private fields */);Expand description
Builder for PromptCacheOptions.
Implementations§
Source§impl PromptCacheOptionsBuilder
impl PromptCacheOptionsBuilder
pub fn comparison_response_id(self, value: impl Into<Option<String>>) -> Self
pub fn prewarm(self, value: impl Into<bool>) -> Self
pub fn mode(self, value: impl Into<PromptCachingMode>) -> Self
pub fn ttl(self, value: impl Into<PromptCacheTtl>) -> Self
pub fn rest(self, value: Rest) -> Self
Sourcepub fn build(self) -> PromptCacheOptions
pub fn build(self) -> PromptCacheOptions
Return the completed wire value.
Auto Trait Implementations§
impl Freeze for PromptCacheOptionsBuilder
impl RefUnwindSafe for PromptCacheOptionsBuilder
impl Send for PromptCacheOptionsBuilder
impl Sync for PromptCacheOptionsBuilder
impl Unpin for PromptCacheOptionsBuilder
impl UnsafeUnpin for PromptCacheOptionsBuilder
impl UnwindSafe for PromptCacheOptionsBuilder
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