pub struct SwiftOptions {Show 17 fields
pub just_types: bool,
pub convience_initializers: bool,
pub explicit_coding_keys: bool,
pub coding_keys_protocol: String,
pub alamofire: bool,
pub type_prefix: String,
pub struct_or_class: StructOrClass,
pub mutable_properties: bool,
pub acronym_style: AcronymStyle,
pub density: Density,
pub support_linux: bool,
pub objective_c_support: bool,
pub optional_enums: bool,
pub swift_5_support: bool,
pub sendable: bool,
pub access_level: SwiftAccessLevel,
pub protocol: SwiftProtocol,
}
Fields§
§just_types: bool
Plain types only
convience_initializers: bool
Generate initializers and mutators
explicit_coding_keys: bool
Explicit CodingKey values in Codable types
coding_keys_protocol: String
CodingKeys implements protocols
alamofire: bool
Alamofire extensions
type_prefix: String
Prefix for type names
struct_or_class: StructOrClass
Prefix for type names
mutable_properties: bool
Use var instead of let for object properties
acronym_style: AcronymStyle
Acronym naming style
density: Density
Code density
support_linux: bool
Support Linux
objective_c_support: bool
Objects inherit from NSObject and @objcMembers is added to classes
optional_enums: bool
If no matching case is found enum value is set to null
swift_5_support: bool
Renders output in a Swift 5 compatible mode
sendable: bool
Mark generated models as Sendable
access_level: SwiftAccessLevel
Access level
protocol: SwiftProtocol
Make types implement protocol
Trait Implementations§
Source§impl Clone for SwiftOptions
impl Clone for SwiftOptions
Source§fn clone(&self) -> SwiftOptions
fn clone(&self) -> SwiftOptions
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SwiftOptions
impl Debug for SwiftOptions
Source§impl Default for SwiftOptions
impl Default for SwiftOptions
Source§impl Hash for SwiftOptions
impl Hash for SwiftOptions
Source§impl PartialEq for SwiftOptions
impl PartialEq for SwiftOptions
impl Eq for SwiftOptions
impl StructuralPartialEq for SwiftOptions
Auto Trait Implementations§
impl Freeze for SwiftOptions
impl RefUnwindSafe for SwiftOptions
impl Send for SwiftOptions
impl Sync for SwiftOptions
impl Unpin for SwiftOptions
impl UnwindSafe for SwiftOptions
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