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§
Trait Implementations§
source§impl Clone for IdempotencyLevel
impl Clone for IdempotencyLevel
source§fn clone(&self) -> IdempotencyLevel
fn clone(&self) -> IdempotencyLevel
Returns a copy of the value. Read more
1.0.0 · 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 Enum for IdempotencyLevel
impl Enum for IdempotencyLevel
source§const NAME: &'static str = "IdempotencyLevel"
const NAME: &'static str = "IdempotencyLevel"
Enum name as specified in
.proto
file. Read moresource§const VALUES: &'static [IdempotencyLevel] = _
const VALUES: &'static [IdempotencyLevel] = _
All enum values for enum type.
source§impl EnumFull for IdempotencyLevel
impl EnumFull for IdempotencyLevel
source§fn enum_descriptor() -> EnumDescriptor
fn enum_descriptor() -> EnumDescriptor
Get enum descriptor by type.
source§fn descriptor(&self) -> EnumValueDescriptor
fn descriptor(&self) -> EnumValueDescriptor
Get enum value descriptor.
source§impl Hash for IdempotencyLevel
impl Hash for IdempotencyLevel
source§impl PartialEq for IdempotencyLevel
impl PartialEq for IdempotencyLevel
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 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)