pub enum FieldModifier {
Optional,
Required,
Repeated,
}Expand description
Field modifier keywords.
Variants§
Implementations§
Source§impl FieldModifier
impl FieldModifier
Sourcepub fn into_owned(self) -> FieldModifier
pub fn into_owned(self) -> FieldModifier
Copy the structure and clone the original values if it’s not owned.
This is always a deep copy of the structure.
Trait Implementations§
Source§impl Clone for FieldModifier
impl Clone for FieldModifier
Source§fn clone(&self) -> FieldModifier
fn clone(&self) -> FieldModifier
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 FieldModifier
impl Debug for FieldModifier
Source§impl IntoOwned for FieldModifier
impl IntoOwned for FieldModifier
Source§type Owned = FieldModifier
type Owned = FieldModifier
The type after obtaining ownership, should be the same as before but with static lifetime.
Source§fn into_owned(self) -> Self::Owned
fn into_owned(self) -> Self::Owned
Copy the structure and clone the original values if it’s not owned. Read more
Source§impl PartialEq for FieldModifier
impl PartialEq for FieldModifier
impl StructuralPartialEq for FieldModifier
Auto Trait Implementations§
impl Freeze for FieldModifier
impl RefUnwindSafe for FieldModifier
impl Send for FieldModifier
impl Sync for FieldModifier
impl Unpin for FieldModifier
impl UnwindSafe for FieldModifier
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