Importer

Trait Importer 

Source
pub trait Importer:
    TypeUuidDynamic
    + Sync
    + Send
    + RefUnwindSafe
    + 'static {
    // Required methods
    fn supported_file_extensions(&self) -> &[&'static str];
    fn scan_file(&self, context: ScanContext<'_>) -> PipelineResult<()>;
    fn import_file(&self, context: ImportContext<'_>) -> PipelineResult<()>;

    // Provided method
    fn importer_id(&self) -> ImporterId { ... }
}

Required Methods§

Source

fn supported_file_extensions(&self) -> &[&'static str]

Source

fn scan_file(&self, context: ScanContext<'_>) -> PipelineResult<()>

Source

fn import_file(&self, context: ImportContext<'_>) -> PipelineResult<()>

Provided Methods§

Implementors§