Struct upcake::assertions::RequestAssertionConfig [−][src]
pub struct RequestAssertionConfig<T> where
T: Assert + ?Sized, {
pub skip: Option<String>,
pub path: Option<String>,
pub assertion: T,
}
Expand description
Configuration for the assertion to applied against the response results
Fields
skip: Option<String>
Whether this assertion should be skipped
path: Option<String>
The jql
path to the field being asserted
Defaults to .
when not set during deserialization.
Ignored when set on inner assertions, for example Length::inner
.
assertion: T
The assertion to apply
Trait Implementations
impl<'de, T> Deserialize<'de> for RequestAssertionConfig<T> where
T: Assert + ?Sized,
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for RequestAssertionConfig<T> where
T: Assert + ?Sized,
T: Deserialize<'de>,
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<T: ?Sized> RefUnwindSafe for RequestAssertionConfig<T> where
T: RefUnwindSafe,
impl<T: ?Sized> Send for RequestAssertionConfig<T> where
T: Send,
impl<T: ?Sized> Sync for RequestAssertionConfig<T> where
T: Sync,
impl<T: ?Sized> Unpin for RequestAssertionConfig<T> where
T: Unpin,
impl<T: ?Sized> UnwindSafe for RequestAssertionConfig<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more