pub enum FieldBehavior {
FIELD_BEHAVIOR_UNSPECIFIED = 0,
OPTIONAL = 1,
REQUIRED = 2,
OUTPUT_ONLY = 3,
INPUT_ONLY = 4,
IMMUTABLE = 5,
UNORDERED_LIST = 6,
NON_EMPTY_DEFAULT = 7,
IDENTIFIER = 8,
}Expand description
Generated files are compatible only with the same version of protobuf runtime.
Variants§
FIELD_BEHAVIOR_UNSPECIFIED = 0
OPTIONAL = 1
REQUIRED = 2
OUTPUT_ONLY = 3
INPUT_ONLY = 4
IMMUTABLE = 5
UNORDERED_LIST = 6
NON_EMPTY_DEFAULT = 7
IDENTIFIER = 8
Trait Implementations§
Source§impl Clone for FieldBehavior
impl Clone for FieldBehavior
Source§fn clone(&self) -> FieldBehavior
fn clone(&self) -> FieldBehavior
Returns a duplicate of the value. Read more
1.0.0 · 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 FieldBehavior
impl Debug for FieldBehavior
Source§impl Default for FieldBehavior
impl Default for FieldBehavior
Source§impl Hash for FieldBehavior
impl Hash for FieldBehavior
Source§impl PartialEq for FieldBehavior
impl PartialEq for FieldBehavior
Source§impl ProtobufEnum for FieldBehavior
impl ProtobufEnum for FieldBehavior
Source§fn from_i32(value: i32) -> Option<FieldBehavior>
fn from_i32(value: i32) -> Option<FieldBehavior>
Try to create an enum from
i32 value.
Return None if value is unknown.Source§fn enum_descriptor_static() -> &'static EnumDescriptor
fn enum_descriptor_static() -> &'static EnumDescriptor
Get enum descriptor by type.
Source§fn descriptor(&self) -> &'static EnumValueDescriptor
fn descriptor(&self) -> &'static EnumValueDescriptor
Get enum value descriptor.
Source§fn enum_descriptor(&self) -> &'static EnumDescriptor
fn enum_descriptor(&self) -> &'static EnumDescriptor
Get enum descriptor.
Source§impl ProtobufValue for FieldBehavior
impl ProtobufValue for FieldBehavior
Source§fn as_ref(&self) -> ReflectValueRef<'_>
fn as_ref(&self) -> ReflectValueRef<'_>
As ref
Source§fn is_non_zero(&self) -> bool
fn is_non_zero(&self) -> bool
Is value non-zero?
Source§fn as_ref_copy(&self) -> ReflectValueRef<'static>
fn as_ref_copy(&self) -> ReflectValueRef<'static>
impl Copy for FieldBehavior
impl Eq for FieldBehavior
impl StructuralPartialEq for FieldBehavior
Auto Trait Implementations§
impl Freeze for FieldBehavior
impl RefUnwindSafe for FieldBehavior
impl Send for FieldBehavior
impl Sync for FieldBehavior
impl Unpin for FieldBehavior
impl UnwindSafe for FieldBehavior
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