pub trait Backend {
    fn name(&self) -> &'static str;
    fn npm_dependencies(&self) -> Vec<String> ;
    fn process(&self, file: &FileInterfaces) -> Result<Vec<Artifact>>;
}
Expand description

A back end that processes interface information and returns a list of artifacts

Required Methods§

The name of the back end

Names of NPM packages that the generated implementation requires.

Processes a single interface file

Implementations§

Factory method for creating a backend from a BridgeProvider.

Trait Implementations§

Converts to this type from the input type.

Implementors§