NoteFromFile

Trait NoteFromFile 

Source
pub trait NoteFromFile: Note
where Self::Properties: DeserializeOwned, Self::Error: From<Error>,
{ // Required method fn from_file(path: impl AsRef<Path>) -> Result<Self, Self::Error>; }
Available on non-target_family=wasm only.
Expand description

Trait for parses an Obsidian note from a file

Required Methods§

Source

fn from_file(path: impl AsRef<Path>) -> Result<Self, Self::Error>

Parses an Obsidian note from a file

§Arguments
  • path: Filesystem path to markdown file

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§