Enum protobuf::well_known_types::Syntax
source · [−]pub enum Syntax {
SYNTAX_PROTO2,
SYNTAX_PROTO3,
}
Expand description
The syntax in which a protocol buffer element is defined.
Variants
SYNTAX_PROTO2
SYNTAX_PROTO3
Trait Implementations
sourceimpl Enum for Syntax
impl Enum for Syntax
sourceimpl EnumFull for Syntax
impl EnumFull for Syntax
sourcefn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
sourcefn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
impl Copy for Syntax
impl Eq for Syntax
impl StructuralEq 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more