Enum power_protobuf_lib::Modifier
source · pub enum Modifier {
Optional,
Repeated,
Required,
}
Expand description
A field rule
Variants§
Optional
A well-formed message can have zero or one of this field (but not more than one).
Repeated
This field can be repeated any number of times (including zero) in a well-formed message. The order of the repeated values will be preserved.
Required
A well-formed message must have exactly one of this field.
Trait Implementations§
source§impl PartialEq for Modifier
impl PartialEq for Modifier
impl Copy for Modifier
impl Eq for Modifier
impl StructuralPartialEq for Modifier
Auto Trait Implementations§
impl Freeze for Modifier
impl RefUnwindSafe for Modifier
impl Send for Modifier
impl Sync for Modifier
impl Unpin for Modifier
impl UnwindSafe for Modifier
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<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.