Struct schema_analysis::targets::json_typegen::Options
source · #[non_exhaustive]pub struct Options {
pub output_mode: OutputMode,
pub runnable: bool,
pub use_default_for_missing_fields: bool,
pub deny_unknown_fields: bool,
pub type_visibility: String,
pub field_visibility: Option<String>,
pub derives: String,
pub property_name_format: Option<StringTransform>,
pub unwrap: String,
pub import_style: ImportStyle,
pub collect_additional: bool,
/* private fields */
}
Expand description
Options for the code generation
Construct with Options::default()
, and change any settings you care about.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.output_mode: OutputMode
§runnable: bool
§use_default_for_missing_fields: bool
§deny_unknown_fields: bool
§type_visibility: String
§field_visibility: Option<String>
§derives: String
§property_name_format: Option<StringTransform>
§unwrap: String
§import_style: ImportStyle
§collect_additional: bool
Trait Implementations§
source§impl PartialEq<Options> for Options
impl PartialEq<Options> for Options
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl !RefUnwindSafe for Options
impl Send for Options
impl !Sync for Options
impl Unpin for Options
impl UnwindSafe for Options
Blanket Implementations§
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
fn into_any(self: Box<T, Global>) -> Box<dyn Any + 'static, Global>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any + 'static>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.