pub enum ResponsePriority {
Replay = 0,
Fail = 1,
Proxy = 2,
Mock = 3,
Record = 4,
}
Expand description
Response priority levels
Variants§
Replay = 0
Replay from recorded fixtures (highest priority)
Fail = 1
Fail injection (second priority)
Proxy = 2
Proxy to upstream (third priority)
Mock = 3
Mock from OpenAPI spec (fourth priority)
Record = 4
Record request for future replay (lowest priority)
Trait Implementations§
Source§impl Clone for ResponsePriority
impl Clone for ResponsePriority
Source§fn clone(&self) -> ResponsePriority
fn clone(&self) -> ResponsePriority
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 ResponsePriority
impl Debug for ResponsePriority
Source§impl Ord for ResponsePriority
impl Ord for ResponsePriority
Source§fn cmp(&self, other: &ResponsePriority) -> Ordering
fn cmp(&self, other: &ResponsePriority) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ResponsePriority
impl PartialEq for ResponsePriority
Source§impl PartialOrd for ResponsePriority
impl PartialOrd for ResponsePriority
impl Eq for ResponsePriority
impl StructuralPartialEq for ResponsePriority
Auto Trait Implementations§
impl Freeze for ResponsePriority
impl RefUnwindSafe for ResponsePriority
impl Send for ResponsePriority
impl Sync for ResponsePriority
impl Unpin for ResponsePriority
impl UnwindSafe for ResponsePriority
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§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.