pub struct PrefixChange {
pub old: PrefixFingerprint,
pub new: PrefixFingerprint,
pub system_changed: bool,
pub tools_changed: bool,
}Expand description
A change record describing what drifted in the prefix.
Fields§
§old: PrefixFingerprintThe old fingerprint (before the change).
new: PrefixFingerprintThe new fingerprint (after the change).
system_changed: boolWhether the system prompt component changed.
tools_changed: boolWhether the tool set component changed.
Implementations§
Source§impl PrefixChange
impl PrefixChange
Trait Implementations§
Source§impl Clone for PrefixChange
impl Clone for PrefixChange
Source§fn clone(&self) -> PrefixChange
fn clone(&self) -> PrefixChange
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 PrefixChange
impl Debug for PrefixChange
Source§impl<'de> Deserialize<'de> for PrefixChange
impl<'de> Deserialize<'de> for PrefixChange
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
Auto Trait Implementations§
impl Freeze for PrefixChange
impl RefUnwindSafe for PrefixChange
impl Send for PrefixChange
impl Sync for PrefixChange
impl Unpin for PrefixChange
impl UnsafeUnpin for PrefixChange
impl UnwindSafe for PrefixChange
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