#[repr(i32)]pub enum FieldPresence {
FIELD_PRESENCE_UNKNOWN = 0,
EXPLICIT = 1,
IMPLICIT = 2,
LEGACY_REQUIRED = 3,
}Variants§
Implementations§
Source§impl FieldPresence
impl FieldPresence
Sourcepub const FieldPresenceUnknown: FieldPresence = Self::FIELD_PRESENCE_UNKNOWN
pub const FieldPresenceUnknown: FieldPresence = Self::FIELD_PRESENCE_UNKNOWN
Idiomatic alias for Self::FIELD_PRESENCE_UNKNOWN; Debug prints the variant name.
Sourcepub const Explicit: FieldPresence = Self::EXPLICIT
pub const Explicit: FieldPresence = Self::EXPLICIT
Idiomatic alias for Self::EXPLICIT; Debug prints the variant name.
Sourcepub const Implicit: FieldPresence = Self::IMPLICIT
pub const Implicit: FieldPresence = Self::IMPLICIT
Idiomatic alias for Self::IMPLICIT; Debug prints the variant name.
Sourcepub const LegacyRequired: FieldPresence = Self::LEGACY_REQUIRED
pub const LegacyRequired: FieldPresence = Self::LEGACY_REQUIRED
Idiomatic alias for Self::LEGACY_REQUIRED; Debug prints the variant name.
Trait Implementations§
Source§impl Clone for FieldPresence
impl Clone for FieldPresence
Source§fn clone(&self) -> FieldPresence
fn clone(&self) -> FieldPresence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for FieldPresence
Source§impl Debug for FieldPresence
impl Debug for FieldPresence
Source§impl Default for FieldPresence
impl Default for FieldPresence
Source§fn default() -> FieldPresence
fn default() -> FieldPresence
Returns the “default value” for a type. Read more
Source§impl Enumeration for FieldPresence
impl Enumeration for FieldPresence
Source§fn from_i32(value: i32) -> Option<FieldPresence>
fn from_i32(value: i32) -> Option<FieldPresence>
Convert from an
i32 wire value to the enum. Read moreSource§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§fn from_proto_name(name: &str) -> Option<FieldPresence>
fn from_proto_name(name: &str) -> Option<FieldPresence>
Look up a variant by its protobuf name string. Read more
Source§fn values() -> &'static [FieldPresence]
fn values() -> &'static [FieldPresence]
All known variants of this enum, in proto declaration order. Read more
impl Eq for FieldPresence
Source§impl Hash for FieldPresence
impl Hash for FieldPresence
Source§impl PartialEq for FieldPresence
impl PartialEq for FieldPresence
Source§fn eq(&self, other: &FieldPresence) -> bool
fn eq(&self, other: &FieldPresence) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for FieldPresence
Auto Trait Implementations§
impl Freeze for FieldPresence
impl RefUnwindSafe for FieldPresence
impl Send for FieldPresence
impl Sync for FieldPresence
impl Unpin for FieldPresence
impl UnsafeUnpin for FieldPresence
impl UnwindSafe for FieldPresence
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more