Struct protobuf::well_known_types::EnumValue
[−]
[src]
pub struct EnumValue { pub name: String, pub number: i32, // some fields omitted }
Fields
name: String
number: i32
Methods
impl EnumValue
[src]
fn new() -> EnumValue
fn default_instance() -> &'static EnumValue
fn clear_name(&mut self)
fn set_name(&mut self, v: String)
fn mut_name(&mut self) -> &mut String
fn take_name(&mut self) -> String
fn get_name(&self) -> &str
fn clear_number(&mut self)
fn set_number(&mut self, v: i32)
fn get_number(&self) -> i32
fn clear_options(&mut self)
fn set_options(&mut self, v: RepeatedField<Option>)
fn mut_options(&mut self) -> &mut RepeatedField<Option>
fn take_options(&mut self) -> RepeatedField<Option>
fn get_options(&self) -> &[Option]
Trait Implementations
impl PartialEq for EnumValue
[src]
fn eq(&self, __arg_0: &EnumValue) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &EnumValue) -> bool
This method tests for !=
.
impl Clone for EnumValue
[src]
fn clone(&self) -> EnumValue
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 Default for EnumValue
[src]
impl Sync for EnumValue
[src]
impl Message for EnumValue
[src]
fn is_initialized(&self) -> bool
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
fn compute_size(&self) -> u32
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
fn get_unknown_fields(&self) -> &UnknownFields
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
fn as_any(&self) -> &Any
fn as_any_mut(&mut self) -> &mut Any
fn into_any(self: Box<Self>) -> Box<Any>
fn descriptor(&self) -> &'static MessageDescriptor
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>