Struct protobuf::well_known_types::Enum
[−]
[src]
pub struct Enum { pub name: String, pub enumvalue: RepeatedField<EnumValue>, pub options: RepeatedField<Option>, pub source_context: SingularPtrField<SourceContext>, pub syntax: Syntax, // some fields omitted }
Fields
name: String
enumvalue: RepeatedField<EnumValue>
options: RepeatedField<Option>
source_context: SingularPtrField<SourceContext>
syntax: Syntax
Methods
impl Enum
[src]
pub fn new() -> Enum
[src]
pub fn default_instance() -> &'static Enum
[src]
pub fn clear_name(&mut self)
[src]
pub fn set_name(&mut self, v: String)
[src]
pub fn mut_name(&mut self) -> &mut String
[src]
pub fn take_name(&mut self) -> String
[src]
pub fn get_name(&self) -> &str
[src]
pub fn clear_enumvalue(&mut self)
[src]
pub fn set_enumvalue(&mut self, v: RepeatedField<EnumValue>)
[src]
pub fn mut_enumvalue(&mut self) -> &mut RepeatedField<EnumValue>
[src]
pub fn take_enumvalue(&mut self) -> RepeatedField<EnumValue>
[src]
pub fn get_enumvalue(&self) -> &[EnumValue]
[src]
pub fn clear_options(&mut self)
[src]
pub fn set_options(&mut self, v: RepeatedField<Option>)
[src]
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
[src]
pub fn take_options(&mut self) -> RepeatedField<Option>
[src]
pub fn get_options(&self) -> &[Option]
[src]
pub fn clear_source_context(&mut self)
[src]
pub fn has_source_context(&self) -> bool
[src]
pub fn set_source_context(&mut self, v: SourceContext)
[src]
pub fn mut_source_context(&mut self) -> &mut SourceContext
[src]
pub fn take_source_context(&mut self) -> SourceContext
[src]
pub fn get_source_context(&self) -> &SourceContext
[src]
pub fn clear_syntax(&mut self)
[src]
pub fn set_syntax(&mut self, v: Syntax)
[src]
pub fn get_syntax(&self) -> Syntax
[src]
Trait Implementations
impl PartialEq for Enum
[src]
fn eq(&self, __arg_0: &Enum) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Enum) -> bool
[src]
This method tests for !=
.
impl Clone for Enum
[src]
fn clone(&self) -> Enum
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
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
[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
fn compute_size(&self) -> u32
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn get_cached_size(&self) -> u32
[src]
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn as_any(&self) -> &Any
[src]
fn as_any_mut(&mut self) -> &mut Any
[src]
fn into_any(self: Box<Self>) -> Box<Any>
[src]
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
[src]
fn check_initialized(&self) -> ProtobufResult<()>
[src]
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn type_id(&self) -> TypeId
[src]
impl MessageStatic for Enum
[src]
fn new() -> Enum
[src]
fn descriptor_static(_: Option<Enum>) -> &'static MessageDescriptor
[src]
impl Clear for Enum
[src]
impl Debug for Enum
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more