pub struct FrontMatter {
pub id: Option<String>,
pub question: Option<String>,
pub token_estimate: Option<u32>,
pub tags: Vec<String>,
pub requires: Vec<String>,
pub related: Vec<String>,
}Expand description
Metadata extracted from a knowledge file’s frontmatter.
Fields§
§id: Option<String>§question: Option<String>§token_estimate: Option<u32>Rough token count for the file body. Used for token-budget responses.
requires: Vec<String>Trait Implementations§
Source§impl Clone for FrontMatter
impl Clone for FrontMatter
Source§fn clone(&self) -> FrontMatter
fn clone(&self) -> FrontMatter
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 FrontMatter
impl Debug for FrontMatter
Source§impl Default for FrontMatter
impl Default for FrontMatter
Source§fn default() -> FrontMatter
fn default() -> FrontMatter
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FrontMatter
impl<'de> Deserialize<'de> for FrontMatter
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 FrontMatter
impl RefUnwindSafe for FrontMatter
impl Send for FrontMatter
impl Sync for FrontMatter
impl Unpin for FrontMatter
impl UnsafeUnpin for FrontMatter
impl UnwindSafe for FrontMatter
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