pub struct Settings {
pub indentation: String,
pub indentation_depth: u32,
pub hotfix_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: StringThe indentation prefix of all generated Rust code. Four spaces by default.
indentation_depth: u32The indentation level of all generated Rust code. Zero by default.
hotfix_crate_name: StringThe name of the hotfix crate for imports. hotfix by default.
derives_for_allowed_values: Vec<String>A list of derive macros on top of all generated FIX datatype enums. 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 enums 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