#[non_exhaustive]pub struct ModelPromptCacheFeatures {
pub automatic: &'static [ModelApiSurface],
pub prompt_cache_key: &'static [ModelApiSurface],
pub modes: ModelFeatureSet<ModelPromptCacheMode>,
pub ttls: ModelFeatureSet<ModelPromptCacheTtl>,
pub explicit_breakpoints: &'static [ModelApiSurface],
pub max_write_breakpoints: Option<u8>,
}Expand description
Prompt-cache controls supported by a model.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.automatic: &'static [ModelApiSurface]§prompt_cache_key: &'static [ModelApiSurface]§modes: ModelFeatureSet<ModelPromptCacheMode>§ttls: ModelFeatureSet<ModelPromptCacheTtl>§explicit_breakpoints: &'static [ModelApiSurface]§max_write_breakpoints: Option<u8>Trait Implementations§
Source§impl Clone for ModelPromptCacheFeatures
impl Clone for ModelPromptCacheFeatures
Source§fn clone(&self) -> ModelPromptCacheFeatures
fn clone(&self) -> ModelPromptCacheFeatures
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 moreimpl Copy for ModelPromptCacheFeatures
Source§impl Debug for ModelPromptCacheFeatures
impl Debug for ModelPromptCacheFeatures
impl Eq for ModelPromptCacheFeatures
Source§impl PartialEq for ModelPromptCacheFeatures
impl PartialEq for ModelPromptCacheFeatures
impl StructuralPartialEq for ModelPromptCacheFeatures
Auto Trait Implementations§
impl Freeze for ModelPromptCacheFeatures
impl RefUnwindSafe for ModelPromptCacheFeatures
impl Send for ModelPromptCacheFeatures
impl Sync for ModelPromptCacheFeatures
impl Unpin for ModelPromptCacheFeatures
impl UnsafeUnpin for ModelPromptCacheFeatures
impl UnwindSafe for ModelPromptCacheFeatures
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.