Struct ModelCacheState
pub struct ModelCacheState {
pub entries: Vec<ModelCacheEntry>,
}Expand description
Canonical on-disk model cache schema. Written by zeroclaw models refresh
and read by the channel /model command. Both sides MUST use this type
to prevent schema drift (single-source-of-truth rule).
Fields§
§entries: Vec<ModelCacheEntry>Trait Implementations§
Source§impl Clone for ModelCacheState
impl Clone for ModelCacheState
Source§fn clone(&self) -> ModelCacheState
fn clone(&self) -> ModelCacheState
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelCacheState
impl Debug for ModelCacheState
Source§impl Default for ModelCacheState
impl Default for ModelCacheState
Source§fn default() -> ModelCacheState
fn default() -> ModelCacheState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ModelCacheState
impl<'de> Deserialize<'de> for ModelCacheState
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
Source§impl PartialEq for ModelCacheState
impl PartialEq for ModelCacheState
Source§impl Serialize for ModelCacheState
impl Serialize for ModelCacheState
impl StructuralPartialEq for ModelCacheState
Auto Trait Implementations§
impl Freeze for ModelCacheState
impl RefUnwindSafe for ModelCacheState
impl Send for ModelCacheState
impl Sync for ModelCacheState
impl Unpin for ModelCacheState
impl UnsafeUnpin for ModelCacheState
impl UnwindSafe for ModelCacheState
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more