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

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

implies idempotent

idempotent, but may have side effects

Methods

impl IdempotencyLevel
[src]

Returns true if value is a variant of IdempotencyLevel.

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

Trait Implementations

impl Default for IdempotencyLevel
[src]

Returns the "default value" for a type. Read more

impl From<IdempotencyLevel> for i32
[src]

Performs the conversion.

impl Clone for IdempotencyLevel
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for IdempotencyLevel
[src]

impl Debug for IdempotencyLevel
[src]

Formats the value using the given formatter. Read more

impl PartialEq for IdempotencyLevel
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for IdempotencyLevel
[src]

impl Hash for IdempotencyLevel
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialOrd for IdempotencyLevel
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for IdempotencyLevel
[src]

This method returns an Ordering between self and other. Read more

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

Auto Trait Implementations