Struct massbit_sol::generator::Generator [−][src]
pub struct Generator<'a> {
pub structure_path: &'a str,
pub config_path: &'a str,
pub output_dir: &'a str,
pub schema: Option<Schema>,
pub config: Option<Value>,
pub definitions: BTreeMap<String, Schema>,
}Fields
structure_path: &'a strconfig_path: &'a stroutput_dir: &'a strThe output dir
schema: Option<Schema>config: Option<Value>definitions: BTreeMap<String, Schema>Implementations
pub fn expand_handler_patterns(
&self,
enum_name: &String,
variants: &VariantArray
) -> Vec<String>ⓘ
pub fn expand_handler_functions(&self, variants: &VariantArray) -> Vec<String>ⓘ
Return true if value of a property is optional A property can be none when unpacking if Property is not a vector, data_type is NonZero* or some user defined struct or enum
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for Generator<'a>
impl<'a> UnwindSafe for Generator<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more