pub struct KnowledgeReference {
pub id: String,
pub topic: String,
pub path: String,
pub load_when: LoadCondition,
pub content: Option<String>,
}Expand description
A reference file that can be loaded on-demand
Fields§
§id: StringReference identifier
topic: StringTopic name
path: StringRelative path to the reference file
load_when: LoadConditionWhen to load this reference
content: Option<String>Cached content (loaded on-demand)
Implementations§
Trait Implementations§
Source§impl Clone for KnowledgeReference
impl Clone for KnowledgeReference
Source§fn clone(&self) -> KnowledgeReference
fn clone(&self) -> KnowledgeReference
Returns a duplicate of the value. Read more
1.0.0 · 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 KnowledgeReference
impl Debug for KnowledgeReference
Source§impl<'de> Deserialize<'de> for KnowledgeReference
impl<'de> Deserialize<'de> for KnowledgeReference
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 KnowledgeReference
impl RefUnwindSafe for KnowledgeReference
impl Send for KnowledgeReference
impl Sync for KnowledgeReference
impl Unpin for KnowledgeReference
impl UnwindSafe for KnowledgeReference
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