pub struct MemoryProvenance {
pub source: String,
pub session: Option<String>,
}Expand description
Provenance of a memory record (spec §9.5).
Fields§
§source: StringProducer: “user”, “model”, “tool:
session: Option<String>Session the record was produced in, when known.
Trait Implementations§
Source§impl Clone for MemoryProvenance
impl Clone for MemoryProvenance
Source§fn clone(&self) -> MemoryProvenance
fn clone(&self) -> MemoryProvenance
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 MemoryProvenance
impl Debug for MemoryProvenance
Source§impl<'de> Deserialize<'de> for MemoryProvenance
impl<'de> Deserialize<'de> for MemoryProvenance
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 Eq for MemoryProvenance
Source§impl PartialEq for MemoryProvenance
impl PartialEq for MemoryProvenance
Source§impl Serialize for MemoryProvenance
impl Serialize for MemoryProvenance
impl StructuralPartialEq for MemoryProvenance
Auto Trait Implementations§
impl Freeze for MemoryProvenance
impl RefUnwindSafe for MemoryProvenance
impl Send for MemoryProvenance
impl Sync for MemoryProvenance
impl Unpin for MemoryProvenance
impl UnsafeUnpin for MemoryProvenance
impl UnwindSafe for MemoryProvenance
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
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>,
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.