Enum serde_protobuf::descriptor::FieldLabel [−][src]
pub enum FieldLabel {
Optional,
Required,
Repeated,
}Expand description
A label that a field can be given to indicate its cardinality.
Variants
Optional
There can be zero or one value.
Required
There must be exactly one value.
Repeated
There can be any number of values.
Implementations
Converts a proto field label into a native field label.
Whether the label is repeated.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for FieldLabel
impl Send for FieldLabel
impl Sync for FieldLabel
impl Unpin for FieldLabel
impl UnwindSafe for FieldLabel
Blanket Implementations
Mutably borrows from an owned value. Read more