Enum pbjson_types::field::Cardinality [−][src]
#[repr(i32)]
pub enum Cardinality {
Unknown,
Optional,
Required,
Repeated,
}
Variants
Implementations
Trait Implementations
Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for Cardinality
impl<'de> Deserialize<'de> for Cardinality
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
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
impl Serialize for Cardinality
impl Serialize for Cardinality
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