Struct prost_codegen::google::protobuf::EnumOptions
[−]
[src]
pub struct EnumOptions { pub allow_alias: Option<bool>, pub deprecated: Option<bool>, pub uninterpreted_option: Vec<UninterpretedOption>, }
Fields
allow_alias: Option<bool>
Set this option to true to allow mapping different tag names to the same value.
deprecated: Option<bool>
Is this enum deprecated? Depending on the target platform, this can emit Deprecated annotations for the enum, or it will be completely ignored; in the very least, this is a formalization for deprecating enums.
uninterpreted_option: Vec<UninterpretedOption>
The parser stores options it doesn't recognize here. See above.
Methods
impl EnumOptions
[src]
fn allow_alias(&mut self) -> &mut bool
fn deprecated(&mut self) -> &mut bool
Trait Implementations
impl Clone for EnumOptions
[src]
fn clone(&self) -> EnumOptions
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for EnumOptions
[src]
impl PartialEq for EnumOptions
[src]
fn eq(&self, __arg_0: &EnumOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EnumOptions) -> bool
This method tests for !=
.