Struct prost_codegen::google::protobuf::MethodOptions
[−]
[src]
pub struct MethodOptions { pub deprecated: Option<bool>, pub idempotency_level: Option<i32>, pub uninterpreted_option: Vec<UninterpretedOption>, }
Fields
deprecated: Option<bool>
Is this method deprecated? Depending on the target platform, this can emit Deprecated annotations for the method, or it will be completely ignored; in the very least, this is a formalization for deprecating methods.
idempotency_level: Option<i32>
uninterpreted_option: Vec<UninterpretedOption>
The parser stores options it doesn't recognize here. See above.
Methods
impl MethodOptions
[src]
fn deprecated(&mut self) -> &mut bool
fn idempotency_level(&self) -> Option<IdempotencyLevel>
fn set_idempotency_level(&mut self, value: IdempotencyLevel)
Trait Implementations
impl Clone for MethodOptions
[src]
fn clone(&self) -> MethodOptions
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 Debug for MethodOptions
[src]
impl PartialEq for MethodOptions
[src]
fn eq(&self, __arg_0: &MethodOptions) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &MethodOptions) -> bool
This method tests for !=
.