#[repr(i32)]pub enum CodeGeneratorResponseFeature {
FEATURE_NONE = 0,
FEATURE_PROTO3_OPTIONAL = 1,
FEATURE_SUPPORTS_EDITIONS = 2,
}Expand description
Sync with code_generator.h.
Variants§
Implementations§
Source§impl Feature
impl Feature
Sourcepub const None: Feature = Self::FEATURE_NONE
pub const None: Feature = Self::FEATURE_NONE
Idiomatic alias for Self::FEATURE_NONE; Debug prints the variant name.
Sourcepub const Proto3Optional: Feature = Self::FEATURE_PROTO3_OPTIONAL
pub const Proto3Optional: Feature = Self::FEATURE_PROTO3_OPTIONAL
Idiomatic alias for Self::FEATURE_PROTO3_OPTIONAL; Debug prints the variant name.
Sourcepub const SupportsEditions: Feature = Self::FEATURE_SUPPORTS_EDITIONS
pub const SupportsEditions: Feature = Self::FEATURE_SUPPORTS_EDITIONS
Idiomatic alias for Self::FEATURE_SUPPORTS_EDITIONS; Debug prints the variant name.
Trait Implementations§
impl Copy for Feature
Source§impl Enumeration for Feature
impl Enumeration for Feature
Source§fn from_i32(value: i32) -> Option<Feature>
fn from_i32(value: i32) -> Option<Feature>
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 Feature
impl StructuralPartialEq for Feature
Auto Trait Implementations§
impl Freeze for Feature
impl RefUnwindSafe for Feature
impl Send for Feature
impl Sync for Feature
impl Unpin for Feature
impl UnsafeUnpin for Feature
impl UnwindSafe for Feature
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