pub enum FieldAttrId {
Optional,
Constructor,
Decay,
}
Variants§
Optional
A field can, but does not have to be set.
Constructor
A field must be set directly in the builder
constructor.
Decay
Decay the type once for the setter function.
Eg Option<T>
can be set directly instead of having to wrap it in Some(_)
.
Note: The wording decay
comes from C++ - maybe someone can point out a more Rusty term.
Trait Implementations§
source§impl Debug for FieldAttrId
impl Debug for FieldAttrId
source§impl Hash for FieldAttrId
impl Hash for FieldAttrId
source§impl PartialEq<FieldAttrId> for FieldAttrId
impl PartialEq<FieldAttrId> for FieldAttrId
source§fn eq(&self, other: &FieldAttrId) -> bool
fn eq(&self, other: &FieldAttrId) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl TryFrom<Ident> for FieldAttrId
impl TryFrom<Ident> for FieldAttrId
impl Eq for FieldAttrId
impl StructuralEq for FieldAttrId
impl StructuralPartialEq for FieldAttrId
Auto Trait Implementations§
impl RefUnwindSafe for FieldAttrId
impl Send for FieldAttrId
impl Sync for FieldAttrId
impl Unpin for FieldAttrId
impl UnwindSafe for FieldAttrId
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