Trait goods_treasury_import::Importer[][src]

pub trait Importer: Send + Sync {
    fn name(&self) -> &str;
fn source(&self) -> &str;
fn native(&self) -> &str;
fn import(
        &self,
        source_path: &Path,
        native_path: &Path,
        registry: &mut dyn Registry
    ) -> Result<()>; }

Required methods

Returns name of the importer

Returns name of the source format

Returns name of the native format

Imports asset from source file, saving result to native file. Register sub-assets if necessary.

Implementors