Struct joplin_reader::note::NoteInfo[][src]

pub struct NoteInfo { /* fields omitted */ }

Contains general information about a note, and reads a part of the header when created to check if the note needs to be decrypted (and with which key).

Implementations

impl NoteInfo[src]

pub fn new(note_path: &Path) -> Result<NoteInfo, JoplinReaderError>[src]

Reads in a new from a Path.

pub fn get_id(&self) -> &str[src]

pub fn is_encrypted(&self) -> bool[src]

pub fn get_type_(&self) -> &JoplinItemType[src]

pub fn get_parent_id(&self) -> Option<&str>[src]

pub fn get_encryption_key_id(&self) -> Option<&str>[src]

pub fn read(
    &mut self,
    encryption_key: Option<&str>
) -> Result<&str, JoplinReaderError>
[src]

The content is only read when not existant or after a certain amount of time has passed. That is written into the attributes of self and returned directly from the body.

Trait Implementations

impl Debug for NoteInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.