pub struct StructConfig {
pub rename_fields: Option<RenameRule>,
pub derive_constructor: bool,
pub derive_eq: bool,
pub derive_neq: bool,
pub derive_lt: bool,
pub derive_lte: bool,
pub derive_gt: bool,
pub derive_gte: bool,
}
Settings to apply to generated structs.
The rename rule to apply to the name of struct fields
Whether to generate a constructor for the struct (which takes
arguments to initialize all the members)
Whether to generate a piecewise equality operator
Whether to generate a piecewise inequality operator
Whether to generate a less than operator on structs with one field
Whether to generate a less than or equal to operator on structs with one field
Whether to generate a greater than operator on structs with one field
Whether to generate a greater than or equal to operator on structs with one field
Performs copy-assignment from source
. Read more
Returns the "default value" for a type. Read more
Formats the value using the given formatter. Read more
Deserialize this value from the given Serde deserializer. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Mutably borrows from an owned value. Read more