#[repr(i32)]pub enum IdempotencyLevel {
IDEMPOTENCY_UNKNOWN = 0,
NO_SIDE_EFFECTS = 1,
IDEMPOTENT = 2,
}Expand description
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§
IDEMPOTENCY_UNKNOWN = 0
NO_SIDE_EFFECTS = 1
implies idempotent
IDEMPOTENT = 2
idempotent, but may have side effects
Trait Implementations§
Source§impl Clone for IdempotencyLevel
impl Clone for IdempotencyLevel
Source§fn clone(&self) -> IdempotencyLevel
fn clone(&self) -> IdempotencyLevel
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for IdempotencyLevel
impl Debug for IdempotencyLevel
Source§impl Default for IdempotencyLevel
impl Default for IdempotencyLevel
Source§impl Enumeration for IdempotencyLevel
impl Enumeration for IdempotencyLevel
Source§fn proto_name(&self) -> &'static str
fn proto_name(&self) -> &'static str
The name of this enum variant as it appears in the
.proto file.Source§impl Hash for IdempotencyLevel
impl Hash for IdempotencyLevel
Source§impl PartialEq for IdempotencyLevel
impl PartialEq for IdempotencyLevel
Source§fn eq(&self, other: &IdempotencyLevel) -> bool
fn eq(&self, other: &IdempotencyLevel) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for IdempotencyLevel
impl Eq for IdempotencyLevel
impl StructuralPartialEq for IdempotencyLevel
Auto Trait Implementations§
impl Freeze for IdempotencyLevel
impl RefUnwindSafe for IdempotencyLevel
impl Send for IdempotencyLevel
impl Sync for IdempotencyLevel
impl Unpin for IdempotencyLevel
impl UnsafeUnpin for IdempotencyLevel
impl UnwindSafe for IdempotencyLevel
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more