pub trait Generator {
type Options: Default;
// Required methods
fn new(name: &str, version: &str, options: Self::Options) -> Self;
fn add_only(&mut self, schema: &Schema);
fn result(self) -> GenResult;
}Required Associated Types§
Required Methods§
fn new(name: &str, version: &str, options: Self::Options) -> Self
fn add_only(&mut self, schema: &Schema)
fn result(self) -> GenResult
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.