Enum protobuf_parser::Rule
[−]
[src]
pub enum Rule { Optional, Repeated, Required, }
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 Debug for Rule
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Clone for Rule
[src]
fn clone(&self) -> Rule
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Rule
[src]
impl Eq for Rule
[src]
impl PartialEq for Rule
[src]
fn eq(&self, __arg_0: &Rule) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.