#[non_exhaustive]pub struct Options {
pub output_mode: OutputMode,
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§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: boolTrait Implementations§
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more