pub struct VerificationTimes {
pub at_least: Option<u32>,
pub at_most: Option<u32>,
}Expand description
Verification constraints — how many times a request must have been received.
On the wire both atLeast and atMost are ALWAYS sent, using -1 to mean
“unbounded”. The MockServer server deserializes these into primitive int
fields, so an omitted bound defaults to 0 server-side — which would turn
at_least(n) into an impossible between(n, 0) constraint. Emitting the
explicit -1 sentinel (matching the Java client) avoids that.
Fields§
§at_least: Option<u32>§at_most: Option<u32>Implementations§
Trait Implementations§
Source§impl Clone for VerificationTimes
impl Clone for VerificationTimes
Source§fn clone(&self) -> VerificationTimes
fn clone(&self) -> VerificationTimes
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 VerificationTimes
impl Debug for VerificationTimes
Source§impl<'de> Deserialize<'de> for VerificationTimes
impl<'de> Deserialize<'de> for VerificationTimes
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
Source§impl PartialEq for VerificationTimes
impl PartialEq for VerificationTimes
Source§fn eq(&self, other: &VerificationTimes) -> bool
fn eq(&self, other: &VerificationTimes) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for VerificationTimes
impl Serialize for VerificationTimes
impl StructuralPartialEq for VerificationTimes
Auto Trait Implementations§
impl Freeze for VerificationTimes
impl RefUnwindSafe for VerificationTimes
impl Send for VerificationTimes
impl Sync for VerificationTimes
impl Unpin for VerificationTimes
impl UnsafeUnpin for VerificationTimes
impl UnwindSafe for VerificationTimes
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