pub struct StrumTypeProperties {Show 15 fields
pub parse_err_ty: Option<Path>,
pub parse_err_fn: Option<Path>,
pub case_style: Option<CaseStyle>,
pub ascii_case_insensitive: bool,
pub crate_module_path: Option<Path>,
pub discriminant_derives: Vec<Path>,
pub discriminant_name: Option<Ident>,
pub discriminant_others: Vec<TokenStream>,
pub discriminant_vis: Option<Visibility>,
pub use_phf: bool,
pub prefix: Option<LitStr>,
pub suffix: Option<LitStr>,
pub enum_repr: Option<TokenStream>,
pub const_into_str: bool,
pub discriminant_docs: Vec<LitStr>,
}Fields§
§parse_err_ty: Option<Path>§parse_err_fn: Option<Path>§case_style: Option<CaseStyle>§ascii_case_insensitive: bool§crate_module_path: Option<Path>§discriminant_derives: Vec<Path>§discriminant_name: Option<Ident>§discriminant_others: Vec<TokenStream>§discriminant_vis: Option<Visibility>§use_phf: bool§prefix: Option<LitStr>§suffix: Option<LitStr>§enum_repr: Option<TokenStream>§const_into_str: bool§discriminant_docs: Vec<LitStr>Implementations§
Source§impl StrumTypeProperties
impl StrumTypeProperties
pub fn crate_module_path(&self) -> Path
Trait Implementations§
Source§impl Clone for StrumTypeProperties
impl Clone for StrumTypeProperties
Source§fn clone(&self) -> StrumTypeProperties
fn clone(&self) -> StrumTypeProperties
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 Default for StrumTypeProperties
impl Default for StrumTypeProperties
Source§fn default() -> StrumTypeProperties
fn default() -> StrumTypeProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StrumTypeProperties
impl RefUnwindSafe for StrumTypeProperties
impl !Send for StrumTypeProperties
impl !Sync for StrumTypeProperties
impl Unpin for StrumTypeProperties
impl UnwindSafe for StrumTypeProperties
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