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§impl ComposeSchema for PromptCacheBreakpointParam
Available on crate feature openapi only.
impl ComposeSchema for PromptCacheBreakpointParam
Available on crate feature
openapi only.Source§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
Source§impl ToSchema for PromptCacheBreakpointParam
Available on crate feature openapi only.
impl ToSchema for PromptCacheBreakpointParam
Available on crate feature
openapi only.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