pub struct FieldOption {
pub name: String,
pub value: OptionValue,
}Expand description
An option associated with a field.
Fields§
§name: StringThe name of the option.
value: OptionValueThe value of the option.
Trait Implementations§
Source§impl Clone for FieldOption
impl Clone for FieldOption
Source§fn clone(&self) -> FieldOption
fn clone(&self) -> FieldOption
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 FieldOption
impl Debug for FieldOption
Source§impl PartialEq for FieldOption
impl PartialEq for FieldOption
Source§fn eq(&self, other: &FieldOption) -> bool
fn eq(&self, other: &FieldOption) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldOption
Auto Trait Implementations§
impl Freeze for FieldOption
impl RefUnwindSafe for FieldOption
impl Send for FieldOption
impl Sync for FieldOption
impl Unpin for FieldOption
impl UnsafeUnpin for FieldOption
impl UnwindSafe for FieldOption
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