#[repr(i32)]pub enum FieldPresence {
FIELD_PRESENCE_UNKNOWN = 0,
EXPLICIT = 1,
IMPLICIT = 2,
LEGACY_REQUIRED = 3,
}Variants§
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 moreSource§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
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 Copy for FieldPresence
impl Eq for FieldPresence
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