Struct tpnote_lib::front_matter::FrontMatter
source · [−]Expand description
Represents the front matter of the note.
Fields
map: Map<String, Value>Implementations
sourceimpl FrontMatter
impl FrontMatter
sourcepub fn assert_compulsory_field(&self) -> Result<(), NoteError>
pub fn assert_compulsory_field(&self) -> Result<(), NoteError>
Checks if the front matter contains a field variable with the name defined in the configuration file: as: “compulsory_header_field”.
sourcepub fn assert_not_empty(&self) -> Result<(), NoteError>
pub fn assert_not_empty(&self) -> Result<(), NoteError>
Are any variables registerd?
Trait Implementations
sourceimpl Debug for FrontMatter
impl Debug for FrontMatter
sourceimpl PartialEq<FrontMatter> for FrontMatter
impl PartialEq<FrontMatter> for FrontMatter
sourcefn eq(&self, other: &FrontMatter) -> bool
fn eq(&self, other: &FrontMatter) -> bool
sourceimpl TryFrom<&Content> for FrontMatter
impl TryFrom<&Content> for FrontMatter
sourceimpl TryFrom<&str> for FrontMatter
impl TryFrom<&str> for FrontMatter
impl Eq for FrontMatter
impl StructuralEq for FrontMatter
impl StructuralPartialEq for FrontMatter
Auto Trait Implementations
impl RefUnwindSafe for FrontMatter
impl Send for FrontMatter
impl Sync for FrontMatter
impl Unpin for FrontMatter
impl UnwindSafe for FrontMatter
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.