Struct edres::ValuesStructOptions
source · [−]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: StructOptions
The options for generating structs based on values associated with the enum.
Implementations
sourceimpl 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
sourceimpl Clone for ValuesStructOptions
impl Clone for ValuesStructOptions
sourcefn clone(&self) -> ValuesStructOptions
fn clone(&self) -> ValuesStructOptions
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for ValuesStructOptions
impl Debug for ValuesStructOptions
sourceimpl Default for ValuesStructOptions
impl Default for ValuesStructOptions
sourcefn default() -> ValuesStructOptions
fn default() -> ValuesStructOptions
Examples
assert_eq!(ValuesStructOptions::default(), ValuesStructOptions::new());
sourceimpl PartialEq<ValuesStructOptions> for ValuesStructOptions
impl PartialEq<ValuesStructOptions> for ValuesStructOptions
sourcefn eq(&self, other: &ValuesStructOptions) -> bool
fn eq(&self, other: &ValuesStructOptions) -> bool
impl Eq for ValuesStructOptions
impl StructuralEq for ValuesStructOptions
impl StructuralPartialEq for ValuesStructOptions
Auto Trait Implementations
impl RefUnwindSafe for ValuesStructOptions
impl Send for ValuesStructOptions
impl Sync for ValuesStructOptions
impl Unpin for ValuesStructOptions
impl UnwindSafe for ValuesStructOptions
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.