pub enum Rule {
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§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnwindSafe for Rule
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