Struct protobuf::well_known_types::Type
[−]
[src]
pub struct Type { pub name: String, pub syntax: Syntax, // some fields omitted }
Fields
name: String
syntax: Syntax
Methods
impl Type
[src]
fn new() -> Type
fn default_instance() -> &'static Type
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_fields(&mut self)
fn set_fields(&mut self, v: RepeatedField<Field>)
fn mut_fields(&mut self) -> &mut RepeatedField<Field>
fn take_fields(&mut self) -> RepeatedField<Field>
fn get_fields(&self) -> &[Field]
fn clear_oneofs(&mut self)
fn set_oneofs(&mut self, v: RepeatedField<String>)
fn mut_oneofs(&mut self) -> &mut RepeatedField<String>
fn take_oneofs(&mut self) -> RepeatedField<String>
fn get_oneofs(&self) -> &[String]
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 Type
[src]
fn eq(&self, __arg_0: &Type) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Type) -> bool
This method tests for !=
.
impl Clone for Type
[src]
fn clone(&self) -> Type
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 Type
[src]
impl Sync for Type
[src]
impl Message for Type
[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<()>