Enum prost_types::field::Cardinality [−][src]
#[repr(i32)] pub enum Cardinality { Unknown, Optional, Required, Repeated, }
Expand description
Whether a field is optional, required, or repeated.
Variants
For fields with unknown cardinality.
For optional fields.
For required fields. Proto2 syntax only.
For repeated fields.
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Cardinality
impl Send for Cardinality
impl Sync for Cardinality
impl Unpin for Cardinality
impl UnwindSafe for Cardinality
Blanket Implementations
Mutably borrows from an owned value. Read more