pub struct ValuesStructOptions {
pub struct_name: Option<Cow<'static, str>>,
pub struct_options: StructOptions,
}Expand description
Options specific to how edres should generate structs for
values associated with enum variants.
Fields§
§struct_name: Option<Cow<'static, str>>If present, this will be the name of the struct generated for the values corresponding to the enum variants.
struct_options: StructOptionsThe options for generating structs based on values associated with the enum.
Implementations§
Source§impl ValuesStructOptions
impl ValuesStructOptions
Sourcepub const fn new() -> ValuesStructOptions
pub const fn new() -> ValuesStructOptions
§Examples
assert_eq!(ValuesStructOptions::new(), ValuesStructOptions {
struct_name: None,
struct_options: StructOptions::new(),
});Sourcepub const fn minimal() -> ValuesStructOptions
pub const fn minimal() -> ValuesStructOptions
§Examples
assert_eq!(ValuesStructOptions::minimal(), ValuesStructOptions {
struct_name: None,
struct_options: StructOptions::minimal(),
});Trait Implementations§
Source§impl Clone for ValuesStructOptions
impl Clone for ValuesStructOptions
Source§fn clone(&self) -> ValuesStructOptions
fn clone(&self) -> ValuesStructOptions
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 Debug for ValuesStructOptions
impl Debug for ValuesStructOptions
Source§impl Default for ValuesStructOptions
impl Default for ValuesStructOptions
Source§fn default() -> ValuesStructOptions
fn default() -> ValuesStructOptions
§Examples
assert_eq!(ValuesStructOptions::default(), ValuesStructOptions::new());Source§impl PartialEq for ValuesStructOptions
impl PartialEq for ValuesStructOptions
impl Eq for ValuesStructOptions
impl StructuralPartialEq for ValuesStructOptions
Auto Trait Implementations§
impl Freeze for ValuesStructOptions
impl RefUnwindSafe for ValuesStructOptions
impl Send for ValuesStructOptions
impl Sync for ValuesStructOptions
impl Unpin for ValuesStructOptions
impl UnwindSafe for ValuesStructOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.