Enum protobuf::well_known_types::field::Cardinality
source · [−]pub enum Cardinality {
CARDINALITY_UNKNOWN,
CARDINALITY_OPTIONAL,
CARDINALITY_REQUIRED,
CARDINALITY_REPEATED,
}
Expand description
Whether a field is optional, required, or repeated.
Variants
CARDINALITY_UNKNOWN
CARDINALITY_OPTIONAL
CARDINALITY_REQUIRED
CARDINALITY_REPEATED
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Try to create an enum from i32
value.
Return None
if value is unknown. Read more
Get all enum values for enum type.
Get enum descriptor by type.
Get enum value descriptor.
Get enum descriptor.
type RuntimeType = RuntimeTypeEnum<Self>
type RuntimeType = RuntimeTypeEnum<Self>
Actual implementation of type properties.
Dynamic version of the type.
Pointer to a dynamic reference.
Mutable pointer to a dynamic mutable reference.
Construct a value from given reflective value. Read more
Write the value.
Default value for this type.
Convert a value into a ref value if possible. Read more
Value is non-default?
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