#[repr(i32)]pub enum Label {
LABEL_OPTIONAL = 1,
LABEL_REPEATED = 3,
LABEL_REQUIRED = 2,
}Variants§
LABEL_OPTIONAL = 1
0 is reserved for errors
LABEL_REPEATED = 3
LABEL_REQUIRED = 2
The required label is only allowed in google.protobuf. In proto3 and Editions
it’s explicitly prohibited. In Editions, the field_presence feature
can be used to get this behavior.
Implementations§
Source§impl Label
impl Label
Sourcepub const Optional: Label = Self::LABEL_OPTIONAL
pub const Optional: Label = Self::LABEL_OPTIONAL
Idiomatic alias for Self::LABEL_OPTIONAL; Debug prints the variant name.
Sourcepub const Repeated: Label = Self::LABEL_REPEATED
pub const Repeated: Label = Self::LABEL_REPEATED
Idiomatic alias for Self::LABEL_REPEATED; Debug prints the variant name.
Sourcepub const Required: Label = Self::LABEL_REQUIRED
pub const Required: Label = Self::LABEL_REQUIRED
Idiomatic alias for Self::LABEL_REQUIRED; Debug prints the variant name.
Trait Implementations§
impl Copy for Label
Source§impl Enumeration for Label
impl Enumeration for Label
Source§fn from_i32(value: i32) -> Option<Label>
fn from_i32(value: i32) -> Option<Label>
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.impl Eq for Label
impl StructuralPartialEq for Label
Auto Trait Implementations§
impl Freeze for Label
impl RefUnwindSafe for Label
impl Send for Label
impl Sync for Label
impl Unpin for Label
impl UnsafeUnpin for Label
impl UnwindSafe for Label
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