Struct protobuf::well_known_types::Method
[−]
[src]
pub struct Method { pub name: String, pub request_type_url: String, pub request_streaming: bool, pub response_type_url: String, pub response_streaming: bool, pub options: RepeatedField<Option>, pub syntax: Syntax, // some fields omitted }
Fields
name: String
request_type_url: String
request_streaming: bool
response_type_url: String
response_streaming: bool
options: RepeatedField<Option>
syntax: Syntax
Methods
impl Method
[src]
pub fn new() -> Method
[src]
pub fn default_instance() -> &'static Method
[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_request_type_url(&mut self)
[src]
pub fn set_request_type_url(&mut self, v: String)
[src]
pub fn mut_request_type_url(&mut self) -> &mut String
[src]
pub fn take_request_type_url(&mut self) -> String
[src]
pub fn get_request_type_url(&self) -> &str
[src]
pub fn clear_request_streaming(&mut self)
[src]
pub fn set_request_streaming(&mut self, v: bool)
[src]
pub fn get_request_streaming(&self) -> bool
[src]
pub fn clear_response_type_url(&mut self)
[src]
pub fn set_response_type_url(&mut self, v: String)
[src]
pub fn mut_response_type_url(&mut self) -> &mut String
[src]
pub fn take_response_type_url(&mut self) -> String
[src]
pub fn get_response_type_url(&self) -> &str
[src]
pub fn clear_response_streaming(&mut self)
[src]
pub fn set_response_streaming(&mut self, v: bool)
[src]
pub fn get_response_streaming(&self) -> bool
[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_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 Method
[src]
fn eq(&self, __arg_0: &Method) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Method) -> bool
[src]
This method tests for !=
.
impl Clone for Method
[src]
fn clone(&self) -> Method
[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 Method
[src]
impl Sync for Method
[src]
impl Message for Method
[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 Method
[src]
fn new() -> Method
[src]
fn descriptor_static(_: Option<Method>) -> &'static MessageDescriptor
[src]
impl Clear for Method
[src]
impl Debug for Method
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more