pub struct Settings {
pub indentation: String,
pub indentation_depth: u32,
pub fefix_crate_name: String,
pub derives_for_allowed_values: Vec<String>,
pub attributes_for_allowed_values: Vec<String>,
/* private fields */
}
Expand description
Code generation settings. Instantiate with Default::default
and then
change field values if necessary.
Fields§
§indentation: String
The indentation prefix of all generated Rust code. Four spaces by default.
indentation_depth: u32
The indentation level of all generated Rust code. Zero by default.
fefix_crate_name: String
The name of the fefix
crate for imports. fefix
by default.
derives_for_allowed_values: Vec<String>
A list of derive macros on top of all generated FIX datatype enum
s. E.g.:
// #[derive(Foobar, Spam)]
enum FoodOrDrink {
Food,
Drink,
}
Contains Debug
, Copy
, PartialEq
, Eq
, Hash
,
FieldType
by default.
attributes_for_allowed_values: Vec<String>
A list of attribute macros for generated enum
s variants. E.g.:
enum FoodOrDrink {
// #[foobar]
Food,
// #[spam]
Drink,
}
Empty by default.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Settings
impl RefUnwindSafe for Settings
impl Send for Settings
impl Sync for Settings
impl Unpin for Settings
impl UnwindSafe for Settings
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