pub struct KnowledgeEvidence {
pub provider: String,
pub resource_ref: String,
pub revision_ref: Option<String>,
pub segment_ref: Option<String>,
pub excerpt: String,
pub citation: Option<String>,
pub metadata: Value,
}Expand description
The smallest replayable external-knowledge record. References are opaque to Context Infra and never imply ownership of the provider’s source document.
Fields§
§provider: String§resource_ref: String§revision_ref: Option<String>§segment_ref: Option<String>§excerpt: String§citation: Option<String>§metadata: ValueTrait Implementations§
Source§impl Clone for KnowledgeEvidence
impl Clone for KnowledgeEvidence
Source§fn clone(&self) -> KnowledgeEvidence
fn clone(&self) -> KnowledgeEvidence
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 KnowledgeEvidence
impl Debug for KnowledgeEvidence
Source§impl<'de> Deserialize<'de> for KnowledgeEvidence
impl<'de> Deserialize<'de> for KnowledgeEvidence
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 KnowledgeEvidence
impl PartialEq for KnowledgeEvidence
Source§impl Serialize for KnowledgeEvidence
impl Serialize for KnowledgeEvidence
impl StructuralPartialEq for KnowledgeEvidence
Auto Trait Implementations§
impl Freeze for KnowledgeEvidence
impl RefUnwindSafe for KnowledgeEvidence
impl Send for KnowledgeEvidence
impl Sync for KnowledgeEvidence
impl Unpin for KnowledgeEvidence
impl UnsafeUnpin for KnowledgeEvidence
impl UnwindSafe for KnowledgeEvidence
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