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: boolPlain types only
convience_initializers: boolGenerate initializers and mutators
explicit_coding_keys: boolExplicit CodingKey values in Codable types
coding_keys_protocol: StringCodingKeys implements protocols
alamofire: boolAlamofire extensions
type_prefix: StringPrefix for type names
struct_or_class: StructOrClassPrefix for type names
mutable_properties: boolUse var instead of let for object properties
acronym_style: AcronymStyleAcronym naming style
density: DensityCode density
support_linux: boolSupport Linux
objective_c_support: boolObjects inherit from NSObject and @objcMembers is added to classes
optional_enums: boolIf no matching case is found enum value is set to null
swift_5_support: boolRenders output in a Swift 5 compatible mode
sendable: boolMark generated models as Sendable
access_level: SwiftAccessLevelAccess level
protocol: SwiftProtocolMake 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 duplicate 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