Enum protobuf::descriptor::FieldOptions_JSType
source · pub enum FieldOptions_JSType {
JS_NORMAL,
JS_STRING,
JS_NUMBER,
}
Variants§
Trait Implementations§
source§impl Clone for FieldOptions_JSType
impl Clone for FieldOptions_JSType
source§fn clone(&self) -> FieldOptions_JSType
fn clone(&self) -> FieldOptions_JSType
Returns a copy 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 FieldOptions_JSType
impl Debug for FieldOptions_JSType
source§impl Default for FieldOptions_JSType
impl Default for FieldOptions_JSType
source§impl Hash for FieldOptions_JSType
impl Hash for FieldOptions_JSType
source§impl PartialEq<FieldOptions_JSType> for FieldOptions_JSType
impl PartialEq<FieldOptions_JSType> for FieldOptions_JSType
source§fn eq(&self, other: &FieldOptions_JSType) -> bool
fn eq(&self, other: &FieldOptions_JSType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl ProtobufEnum for FieldOptions_JSType
impl ProtobufEnum for FieldOptions_JSType
source§fn from_i32(value: i32) -> Option<FieldOptions_JSType>
fn from_i32(value: i32) -> Option<FieldOptions_JSType>
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 FieldOptions_JSType
impl ProtobufValue for FieldOptions_JSType
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 FieldOptions_JSType
impl Eq for FieldOptions_JSType
impl StructuralEq for FieldOptions_JSType
impl StructuralPartialEq for FieldOptions_JSType
Auto Trait Implementations§
impl RefUnwindSafe for FieldOptions_JSType
impl Send for FieldOptions_JSType
impl Sync for FieldOptions_JSType
impl Unpin for FieldOptions_JSType
impl UnwindSafe for FieldOptions_JSType
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