pub struct PathAssertion {
pub path: String,
pub eq: Option<Value>,
pub neq: Option<Value>,
pub in_values: Option<Vec<Value>>,
pub contains: Option<Value>,
pub exists: Option<bool>,
pub gte: Option<f64>,
pub lte: Option<f64>,
pub gt: Option<f64>,
pub lt: Option<f64>,
}Expand description
Dot-path assertion used for metadata, context, tools, and metrics.
Fields§
§path: StringPath used for file lookup, HTTP routing, or dot-path checks.
eq: Option<Value>Expected JSON value for exact equality.
neq: Option<Value>JSON value that must not equal the actual value.
in_values: Option<Vec<Value>>Allowed JSON values for membership checks.
contains: Option<Value>String substring or array element expected in the actual value.
exists: Option<bool>Whether the path must exist or be absent.
gte: Option<f64>Numeric lower bound using greater-than-or-equal.
lte: Option<f64>Numeric upper bound using less-than-or-equal.
gt: Option<f64>Numeric lower bound using greater-than.
lt: Option<f64>Numeric upper bound using less-than.
Trait Implementations§
Source§impl Clone for PathAssertion
impl Clone for PathAssertion
Source§fn clone(&self) -> PathAssertion
fn clone(&self) -> PathAssertion
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 PathAssertion
impl Debug for PathAssertion
Source§impl Default for PathAssertion
impl Default for PathAssertion
Source§fn default() -> PathAssertion
fn default() -> PathAssertion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PathAssertion
impl<'de> Deserialize<'de> for PathAssertion
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
Auto Trait Implementations§
impl Freeze for PathAssertion
impl RefUnwindSafe for PathAssertion
impl Send for PathAssertion
impl Sync for PathAssertion
impl Unpin for PathAssertion
impl UnsafeUnpin for PathAssertion
impl UnwindSafe for PathAssertion
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
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<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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.