pub struct ContextSnapshotItem {
pub id: String,
pub ordinal: u32,
pub kind: ContextSnapshotItemKind,
pub role: Option<String>,
pub content: Value,
pub source_record_id: Option<String>,
pub knowledge_evidence: Option<KnowledgeEvidence>,
pub metadata: Value,
}Expand description
One ordered item that was actually visible to the model.
Fields§
§id: String§ordinal: u32§kind: ContextSnapshotItemKind§role: Option<String>§content: Value§source_record_id: Option<String>§knowledge_evidence: Option<KnowledgeEvidence>§metadata: ValueTrait Implementations§
Source§impl Clone for ContextSnapshotItem
impl Clone for ContextSnapshotItem
Source§fn clone(&self) -> ContextSnapshotItem
fn clone(&self) -> ContextSnapshotItem
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 ContextSnapshotItem
impl Debug for ContextSnapshotItem
Source§impl<'de> Deserialize<'de> for ContextSnapshotItem
impl<'de> Deserialize<'de> for ContextSnapshotItem
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 ContextSnapshotItem
impl PartialEq for ContextSnapshotItem
Source§impl Serialize for ContextSnapshotItem
impl Serialize for ContextSnapshotItem
impl StructuralPartialEq for ContextSnapshotItem
Auto Trait Implementations§
impl Freeze for ContextSnapshotItem
impl RefUnwindSafe for ContextSnapshotItem
impl Send for ContextSnapshotItem
impl Sync for ContextSnapshotItem
impl Unpin for ContextSnapshotItem
impl UnsafeUnpin for ContextSnapshotItem
impl UnwindSafe for ContextSnapshotItem
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