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]
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]
&mut self,
encryption_key: Option<&str>
) -> Result<&str, JoplinReaderError>
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
Auto Trait Implementations
impl RefUnwindSafe for NoteInfo
impl RefUnwindSafe for NoteInfo
impl UnwindSafe for NoteInfo
impl UnwindSafe for NoteInfo