Struct protobuf::well_known_types::Api
[−]
[src]
pub struct Api { pub name: String, pub methods: RepeatedField<Method>, pub options: RepeatedField<Option>, pub version: String, pub source_context: SingularPtrField<SourceContext>, pub mixins: RepeatedField<Mixin>, pub syntax: Syntax, // some fields omitted }
Fields
name: String
methods: RepeatedField<Method>
options: RepeatedField<Option>
version: String
source_context: SingularPtrField<SourceContext>
mixins: RepeatedField<Mixin>
syntax: Syntax
Methods
impl Api
[src]
fn new() -> Api
fn default_instance() -> &'static Api
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_methods(&mut self)
fn set_methods(&mut self, v: RepeatedField<Method>)
fn mut_methods(&mut self) -> &mut RepeatedField<Method>
fn take_methods(&mut self) -> RepeatedField<Method>
fn get_methods(&self) -> &[Method]
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_version(&mut self)
fn set_version(&mut self, v: String)
fn mut_version(&mut self) -> &mut String
fn take_version(&mut self) -> String
fn get_version(&self) -> &str
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_mixins(&mut self)
fn set_mixins(&mut self, v: RepeatedField<Mixin>)
fn mut_mixins(&mut self) -> &mut RepeatedField<Mixin>
fn take_mixins(&mut self) -> RepeatedField<Mixin>
fn get_mixins(&self) -> &[Mixin]
fn clear_syntax(&mut self)
fn set_syntax(&mut self, v: Syntax)
fn get_syntax(&self) -> Syntax
Trait Implementations
impl PartialEq for Api
[src]
fn eq(&self, __arg_0: &Api) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Api) -> bool
This method tests for !=
.
impl Clone for Api
[src]
fn clone(&self) -> Api
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 Api
[src]
impl Sync for Api
[src]
impl Message for Api
[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<()>