Trait cubist_sdk::gen::backend::Backend
source · 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§
sourcefn npm_dependencies(&self) -> Vec<String> ⓘ
fn npm_dependencies(&self) -> Vec<String> ⓘ
Names of NPM packages that the generated implementation requires.
Implementations§
source§impl dyn Backend
impl dyn Backend
sourcepub fn create(provider: &BridgeProvider) -> Box<Self>
pub fn create(provider: &BridgeProvider) -> Box<Self>
Factory method for creating a backend from a BridgeProvider
.
Trait Implementations§
source§impl From<&BridgeProvider> for Box<dyn Backend>
impl From<&BridgeProvider> for Box<dyn Backend>
source§fn from(provider: &BridgeProvider) -> Self
fn from(provider: &BridgeProvider) -> Self
Converts to this type from the input type.