Struct joplin_reader::notebook::JoplinNotebook[][src]

pub struct JoplinNotebook { /* fields omitted */ }

Container struct which contains the references (and contents) to the NoteInfos as well as the MasterKeys.

Implementations

impl JoplinNotebook[src]

pub fn new<'a, P: AsRef<Path>, I>(
    joplin_folder: P,
    passwords: I
) -> Result<JoplinNotebook, JoplinReaderError> where
    I: IntoIterator<Item = &'a str>, 
[src]

Read a Joplin data folder. passwords need to be passed as comma-separated key-value (master_key_id,passphrase) pairs.

pub fn read_note(&mut self, note_id: &str) -> Result<&str, JoplinReaderError>[src]

Returns the content of a note.

pub fn get_note(&self, note_id: &str) -> Result<&NoteInfo, JoplinReaderError>[src]

Returns a NoteInfo

Trait Implementations

impl Debug for JoplinNotebook[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.