pub struct EnumOptions {
pub path_to_outfile: PathBuf,
pub split_files: bool,
pub gen_variant_str_fns: bool,
pub gen_impl_links: bool,
pub experimental_no_type_restrictions: bool,
}
Expand description
Contains the options for code generation
Fields§
§path_to_outfile: PathBuf
The output file
split_files: bool
Whether the property declarations should be split into separate files
gen_variant_str_fns: bool
Generate variant as & from str fns
gen_impl_links: bool
Pure conversion functions only or also impl links to them
experimental_no_type_restrictions: bool
EXPERIMENTAL: Unlock const type restrictions on input table
Implementations§
Source§impl EnumOptions
impl EnumOptions
pub fn from_options( path_to_outfile: String, split_files: bool, gen_variant_str_fns: bool, gen_impl_links: bool, ) -> Self
pub fn set_path_to_csv(&self, path_to_outfile: String) -> Self
Trait Implementations§
Source§impl Debug for EnumOptions
impl Debug for EnumOptions
Auto Trait Implementations§
impl Freeze for EnumOptions
impl RefUnwindSafe for EnumOptions
impl Send for EnumOptions
impl Sync for EnumOptions
impl Unpin for EnumOptions
impl UnwindSafe for EnumOptions
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