Skip to main content

ImportPlugin

Trait ImportPlugin 

Source
pub trait ImportPlugin: Plugin {
    // Required method
    fn import(&self, path: &Path) -> Result<Vec<Entry>>;
}
Expand description

The interface that import format plugins must implement.

Each plugin provides a trigger pattern used to match --type FORMAT values and an import method that reads entries from a file path.

Required Methods§

Source

fn import(&self, path: &Path) -> Result<Vec<Entry>>

Import entries from the file at path.

Implementors§