Struct protobuf::well_known_types::Enum
[−]
[src]
pub struct Enum { pub name: String, pub syntax: Syntax, // some fields omitted }
Fields
name: String
syntax: Syntax
Methods
impl Enum
[src]
fn new() -> Enum
fn default_instance() -> &'static Enum
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_enumvalue(&mut self)
fn set_enumvalue(&mut self, v: RepeatedField<EnumValue>)
fn mut_enumvalue(&mut self) -> &mut RepeatedField<EnumValue>
fn take_enumvalue(&mut self) -> RepeatedField<EnumValue>
fn get_enumvalue(&self) -> &[EnumValue]
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]
fn clear_source_context(&mut self)
fn has_source_context(&self) -> bool
fn set_source_context(&mut self, v: SourceContext)
fn mut_source_context(&mut self) -> &mut SourceContext
fn take_source_context(&mut self) -> SourceContext
fn get_source_context(&self) -> &SourceContext
fn clear_syntax(&mut self)
fn set_syntax(&mut self, v: Syntax)
fn get_syntax(&self) -> Syntax
Trait Implementations
impl PartialEq for Enum
[src]
fn eq(&self, __arg_0: &Enum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Enum) -> bool
This method tests for !=
.
impl Clone for Enum
[src]
fn clone(&self) -> Enum
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 Enum
[src]
impl Sync for Enum
[src]
impl Message for Enum
[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<()>