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, pub unknown_fields: UnknownFields, // some fields omitted }
Fields
name: String
enumvalue: RepeatedField<EnumValue>
options: RepeatedField<Option>
source_context: SingularPtrField<SourceContext>
syntax: Syntax
unknown_fields: UnknownFields
Methods
impl Enum
[src]
impl Enum
pub fn new() -> Enum
[src]
pub fn new() -> Enum
pub fn clear_name(&mut self)
[src]
pub fn clear_name(&mut self)
pub fn set_name(&mut self, v: String)
[src]
pub fn set_name(&mut self, v: String)
pub fn mut_name(&mut self) -> &mut String
[src]
pub fn mut_name(&mut self) -> &mut String
pub fn take_name(&mut self) -> String
[src]
pub fn take_name(&mut self) -> String
pub fn get_name(&self) -> &str
[src]
pub fn get_name(&self) -> &str
pub fn clear_enumvalue(&mut self)
[src]
pub fn clear_enumvalue(&mut self)
pub fn set_enumvalue(&mut self, v: RepeatedField<EnumValue>)
[src]
pub fn set_enumvalue(&mut self, v: RepeatedField<EnumValue>)
pub fn mut_enumvalue(&mut self) -> &mut RepeatedField<EnumValue>
[src]
pub fn mut_enumvalue(&mut self) -> &mut RepeatedField<EnumValue>
pub fn take_enumvalue(&mut self) -> RepeatedField<EnumValue>
[src]
pub fn take_enumvalue(&mut self) -> RepeatedField<EnumValue>
pub fn get_enumvalue(&self) -> &[EnumValue]
[src]
pub fn get_enumvalue(&self) -> &[EnumValue]
pub fn clear_options(&mut self)
[src]
pub fn clear_options(&mut self)
pub fn set_options(&mut self, v: RepeatedField<Option>)
[src]
pub fn set_options(&mut self, v: RepeatedField<Option>)
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
[src]
pub fn mut_options(&mut self) -> &mut RepeatedField<Option>
pub fn take_options(&mut self) -> RepeatedField<Option>
[src]
pub fn take_options(&mut self) -> RepeatedField<Option>
pub fn get_options(&self) -> &[Option]
[src]
pub fn get_options(&self) -> &[Option]
pub fn clear_source_context(&mut self)
[src]
pub fn clear_source_context(&mut self)
pub fn has_source_context(&self) -> bool
[src]
pub fn has_source_context(&self) -> bool
pub fn set_source_context(&mut self, v: SourceContext)
[src]
pub fn set_source_context(&mut self, v: SourceContext)
pub fn mut_source_context(&mut self) -> &mut SourceContext
[src]
pub fn mut_source_context(&mut self) -> &mut SourceContext
pub fn take_source_context(&mut self) -> SourceContext
[src]
pub fn take_source_context(&mut self) -> SourceContext
pub fn get_source_context(&self) -> &SourceContext
[src]
pub fn get_source_context(&self) -> &SourceContext
pub fn clear_syntax(&mut self)
[src]
pub fn clear_syntax(&mut self)
pub fn set_syntax(&mut self, v: Syntax)
[src]
pub fn set_syntax(&mut self, v: Syntax)
pub fn get_syntax(&self) -> Syntax
[src]
pub fn get_syntax(&self) -> Syntax
Trait Implementations
impl PartialEq for Enum
[src]
impl PartialEq for Enum
fn eq(&self, other: &Enum) -> bool
[src]
fn eq(&self, other: &Enum) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Enum) -> bool
[src]
fn ne(&self, other: &Enum) -> bool
This method tests for !=
.
impl Clone for Enum
[src]
impl Clone for Enum
fn clone(&self) -> Enum
[src]
fn clone(&self) -> Enum
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Default for Enum
[src]
impl Default for Enum
impl Message for Enum
[src]
impl Message for Enum
fn is_initialized(&self) -> bool
[src]
fn is_initialized(&self) -> bool
True iff all required fields are initialized. Always returns true
for protobuf 3. Read more
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
[src]
fn merge_from(&mut self, is: &mut CodedInputStream) -> ProtobufResult<()>
Update this message object with fields read from given stream.
fn compute_size(&self) -> u32
[src]
fn compute_size(&self) -> u32
Compute and cache size of this message and all nested messages
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
fn write_to_with_cached_sizes(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
Write message to the stream. Read more
fn get_cached_size(&self) -> u32
[src]
fn get_cached_size(&self) -> u32
Get size previously computed by compute_size
.
fn get_unknown_fields(&self) -> &UnknownFields
[src]
fn get_unknown_fields(&self) -> &UnknownFields
Get a reference to unknown fields.
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
[src]
fn mut_unknown_fields(&mut self) -> &mut UnknownFields
Get a mutable reference to unknown fields.
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
View self as Any
.
fn as_any_mut(&mut self) -> &mut Any
[src]
fn as_any_mut(&mut self) -> &mut Any
View self as mutable Any
.
fn into_any(self: Box<Self>) -> Box<Any>
[src]
fn into_any(self: Box<Self>) -> Box<Any>
Convert boxed self to boxed Any
.
fn descriptor(&self) -> &'static MessageDescriptor
[src]
fn descriptor(&self) -> &'static MessageDescriptor
Message descriptor for this message, used for reflection.
fn new() -> Enum
[src]
fn new() -> Enum
Create an empty message object.
fn descriptor_static() -> &'static MessageDescriptor
[src]
fn descriptor_static() -> &'static MessageDescriptor
Get message descriptor for message type.
fn default_instance() -> &'static Enum
[src]
fn default_instance() -> &'static Enum
Return a pointer to default immutable message.
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
[src]
fn write_to(&self, os: &mut CodedOutputStream) -> ProtobufResult<()>
Write the message to the stream. Read more
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
[src]
fn write_length_delimited_to(
&self,
os: &mut CodedOutputStream
) -> ProtobufResult<()>
Write the message to the stream prepending the message with message length encoded as varint. Read more
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn write_length_delimited_to_vec(&self, vec: &mut Vec<u8>) -> ProtobufResult<()>
Write the message to the vec, prepend the message with message length encoded as varint. Read more
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
[src]
fn merge_from_bytes(&mut self, bytes: &[u8]) -> ProtobufResult<()>
Update this message object with fields read from given stream.
fn check_initialized(&self) -> ProtobufResult<()>
[src]
fn check_initialized(&self) -> ProtobufResult<()>
Check if all required fields of this object are initialized.
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
Write the message to the writer.
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
[src]
fn write_to_vec(&self, v: &mut Vec<u8>) -> ProtobufResult<()>
Write the message to bytes vec.
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn write_to_bytes(&self) -> ProtobufResult<Vec<u8>>
Write the message to bytes vec.
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
[src]
fn write_length_delimited_to_writer(&self, w: &mut Write) -> ProtobufResult<()>
Write the message to the writer, prepend the message with message length encoded as varint. Read more
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
[src]
fn write_length_delimited_to_bytes(&self) -> ProtobufResult<Vec<u8>>
Write the message to the bytes vec, prepend the message with message length encoded as varint. Read more
fn type_id(&self) -> TypeId
[src]
fn type_id(&self) -> TypeId
Get type id for downcasting.
impl Clear for Enum
[src]
impl Clear for Enum
impl Debug for Enum
[src]
impl Debug for Enum
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl ProtobufValue for Enum
[src]
impl ProtobufValue for Enum
fn as_ref(&self) -> ProtobufValueRef
[src]
fn as_ref(&self) -> ProtobufValueRef
fn as_any(&self) -> &Any
[src]
fn as_any(&self) -> &Any
fn is_non_zero(&self) -> bool
[src]
fn is_non_zero(&self) -> bool
fn as_ref_copy(&self) -> ProtobufValueRef<'static>
[src]
fn as_ref_copy(&self) -> ProtobufValueRef<'static>