Enum protobuf::well_known_types::type_::Syntax
source · pub enum Syntax {
SYNTAX_PROTO2 = 0,
SYNTAX_PROTO3 = 1,
}
Expand description
The syntax in which a protocol buffer element is defined.
Variants§
Trait Implementations§
source§impl Enum for Syntax
impl Enum for Syntax
source§impl EnumFull for Syntax
impl EnumFull for Syntax
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl PartialEq for Syntax
impl PartialEq for Syntax
impl Copy for Syntax
impl Eq for Syntax
impl StructuralPartialEq for Syntax
Auto Trait Implementations§
impl RefUnwindSafe for Syntax
impl Send for Syntax
impl Sync for Syntax
impl Unpin for Syntax
impl UnwindSafe for Syntax
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