[][src]Struct prost_types::MethodOptions

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]

pub fn deprecated(&self) -> bool[src]

Returns the value of deprecated, or the default value if deprecated is unset.

pub fn idempotency_level(&self) -> IdempotencyLevel[src]

Returns the enum value of idempotency_level, or the default if the field is unset or set to an invalid enum value.

pub fn set_idempotency_level(&mut self, value: IdempotencyLevel)[src]

Sets idempotency_level to the provided enum value.

Trait Implementations

impl Clone for MethodOptions[src]

impl Debug for MethodOptions[src]

impl Default for MethodOptions[src]

impl Message for MethodOptions[src]

impl PartialEq<MethodOptions> for MethodOptions[src]

impl StructuralPartialEq for MethodOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.