[][src]Enum prost_types::method_options::IdempotencyLevel

#[repr(i32)]
pub enum IdempotencyLevel {
    IdempotencyUnknown,
    NoSideEffects,
    Idempotent,
}

Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST.

Variants

IdempotencyUnknown
NoSideEffects

implies idempotent

Idempotent

idempotent, but may have side effects

Methods

impl IdempotencyLevel[src]

pub fn is_valid(value: i32) -> bool[src]

Returns true if value is a variant of IdempotencyLevel.

pub fn from_i32(value: i32) -> Option<IdempotencyLevel>[src]

Converts an i32 to a IdempotencyLevel, or None if value is not a valid variant.

Trait Implementations

impl Clone for IdempotencyLevel[src]

impl Copy for IdempotencyLevel[src]

impl Debug for IdempotencyLevel[src]

impl Default for IdempotencyLevel[src]

impl Eq for IdempotencyLevel[src]

impl From<IdempotencyLevel> for i32[src]

impl Hash for IdempotencyLevel[src]

impl Ord for IdempotencyLevel[src]

impl PartialEq<IdempotencyLevel> for IdempotencyLevel[src]

impl PartialOrd<IdempotencyLevel> for IdempotencyLevel[src]

impl StructuralEq for IdempotencyLevel[src]

impl StructuralPartialEq for IdempotencyLevel[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.