pub struct Note {
pub path: PathBuf,
pub relative_path: String,
pub title: String,
pub frontmatter: BTreeMap<String, Value>,
pub sections: Vec<Section>,
pub wikilinks: Vec<String>,
pub raw_content: String,
pub search_index: NoteSearchIndex,
}Fields§
§path: PathBuf§relative_path: String§title: String§frontmatter: BTreeMap<String, Value>§sections: Vec<Section>§wikilinks: Vec<String>§raw_content: String§search_index: NoteSearchIndexImplementations§
Source§impl Note
impl Note
pub fn new( path: PathBuf, relative_path: String, title: String, frontmatter: BTreeMap<String, Value>, sections: Vec<Section>, wikilinks: Vec<String>, raw_content: String, ) -> Self
pub fn frontmatter_str(&self, key: &str) -> Option<&str>
pub fn frontmatter_bool(&self, key: &str) -> bool
pub fn memory_type(&self) -> Option<&str>
pub fn sensitivity(&self) -> Option<&str>
pub fn source_of_truth(&self) -> bool
pub fn excerpt(&self, max_chars: usize) -> String
pub fn excerpt_for_input(&self, input: &RouteInput, max_chars: usize) -> String
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Note
impl RefUnwindSafe for Note
impl Send for Note
impl Sync for Note
impl Unpin for Note
impl UnsafeUnpin for Note
impl UnwindSafe for Note
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