#[non_exhaustive]pub enum CacheOutcome {
NoKey,
Cached,
Executed,
}Expand description
v1.4.38 audit log 扩展字段:本次 place-order 请求的 cache 结果。
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
NoKey
客户端没传 key,没走幂等 path(backward-compat)
Cached
传了 key,cache hit,返缓存结果(未触发真下单)
Executed
传了 key,cache miss,真执行 + 写 cache
Implementations§
Trait Implementations§
Source§impl Clone for CacheOutcome
impl Clone for CacheOutcome
Source§fn clone(&self) -> CacheOutcome
fn clone(&self) -> CacheOutcome
Returns a duplicate 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 CacheOutcome
impl Debug for CacheOutcome
impl Copy for CacheOutcome
Auto Trait Implementations§
impl Freeze for CacheOutcome
impl RefUnwindSafe for CacheOutcome
impl Send for CacheOutcome
impl Sync for CacheOutcome
impl Unpin for CacheOutcome
impl UnsafeUnpin for CacheOutcome
impl UnwindSafe for CacheOutcome
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