pub struct PromptCacheBreakpointParam {
pub mode: PromptCacheBreakpointParamMode,
}Available on crate feature
chat-completion-types only.Expand description
Marks the exact end of a reusable prompt prefix. The breakpoint inherits its TTL from the request’s
prompt_cache_options.ttl; the boundary is not rounded to a token block.
Fields§
§mode: PromptCacheBreakpointParamModeThe breakpoint mode. Always explicit.
Trait Implementations§
Source§impl Clone for PromptCacheBreakpointParam
impl Clone for PromptCacheBreakpointParam
Source§fn clone(&self) -> PromptCacheBreakpointParam
fn clone(&self) -> PromptCacheBreakpointParam
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PromptCacheBreakpointParam
impl Debug for PromptCacheBreakpointParam
Source§impl<'de> Deserialize<'de> for PromptCacheBreakpointParam
impl<'de> Deserialize<'de> for PromptCacheBreakpointParam
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 PromptCacheBreakpointParam
Auto Trait Implementations§
impl Freeze for PromptCacheBreakpointParam
impl RefUnwindSafe for PromptCacheBreakpointParam
impl Send for PromptCacheBreakpointParam
impl Sync for PromptCacheBreakpointParam
impl Unpin for PromptCacheBreakpointParam
impl UnsafeUnpin for PromptCacheBreakpointParam
impl UnwindSafe for PromptCacheBreakpointParam
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