pub enum IdempotencyClass {
NonDestructive,
Destructive,
}Expand description
Op class for an idempotent route, set explicitly at registration time (plan D6: clarity over cleverness; no heuristic on HTTP method).
Variants§
NonDestructive
Standard create / update / read. Cached for 24 h — long retry window for offline-then-online clients.
Destructive
Delete / revoke / destructive mutation. Cached for 60 s only so a network-flake retry returns the same outcome but a later intentional re-creation under the same UUID isn’t silently no-op’d against a freshly-deleted target.
Implementations§
Source§impl IdempotencyClass
impl IdempotencyClass
Sourcepub fn ttl_seconds(self) -> u64
pub fn ttl_seconds(self) -> u64
Cache lifetime in seconds. Pinned in code rather than config to keep the semantic boundary between the two classes obvious — operators don’t tune it.
Trait Implementations§
Source§impl Clone for IdempotencyClass
impl Clone for IdempotencyClass
Source§fn clone(&self) -> IdempotencyClass
fn clone(&self) -> IdempotencyClass
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 moreimpl Copy for IdempotencyClass
Source§impl Debug for IdempotencyClass
impl Debug for IdempotencyClass
Source§impl<'de> Deserialize<'de> for IdempotencyClass
impl<'de> Deserialize<'de> for IdempotencyClass
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IdempotencyClass
Source§impl Hash for IdempotencyClass
impl Hash for IdempotencyClass
Source§impl PartialEq for IdempotencyClass
impl PartialEq for IdempotencyClass
Source§impl Serialize for IdempotencyClass
impl Serialize for IdempotencyClass
impl StructuralPartialEq for IdempotencyClass
Auto Trait Implementations§
impl Freeze for IdempotencyClass
impl RefUnwindSafe for IdempotencyClass
impl Send for IdempotencyClass
impl Sync for IdempotencyClass
impl Unpin for IdempotencyClass
impl UnsafeUnpin for IdempotencyClass
impl UnwindSafe for IdempotencyClass
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> BorrowUnordered for T
impl<T> BorrowUnordered for T
fn as_unordered(&self) -> &Unordered<T>
Source§impl<T> CallHasher for T
impl<T> CallHasher for T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
impl<'de, T, C> DeserializeTyped<'de, C> for Twhere
T: Deserialize<'de>,
fn deserialize_typed<S>(
_: &C,
deserializer: S,
) -> Result<T, <S as Deserializer<'de>>::Error>where
S: Deserializer<'de>,
impl<T, U> DeserializeTypedOwned<T> for Uwhere
U: for<'de> DeserializeTyped<'de, T>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
fn equivalent(&self, key: &K) -> bool
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
impl<T, U, C> IntoWithContext<U, C> for Twhere
U: FromWithContext<T, C>,
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
Source§impl<T> ResourceProvider<()> for T
impl<T> ResourceProvider<()> for T
Source§fn get_resource(&self) -> &()
fn get_resource(&self) -> &()
Returns a reference to the resource of type
T.