pub struct AssertionHandler { /* private fields */ }Implementations§
Source§impl AssertionHandler
impl AssertionHandler
pub fn new() -> Self
pub fn run_assertions( &self, _assertions: &[String], _response: &Value, _headers: Option<&HashMap<String, String>>, _trailers: Option<&HashMap<String, String>>, ) -> Vec<String>
pub fn evaluate_single_assertion( &self, expression: &str, response: &Value, headers: Option<&HashMap<String, String>>, trailers: Option<&HashMap<String, String>>, ) -> AssertionResult
pub fn append_single_failure( failures: &mut Vec<String>, result: &AssertionResult, expression: &str, )
Trait Implementations§
Source§impl Default for AssertionHandler
impl Default for AssertionHandler
Source§fn default() -> AssertionHandler
fn default() -> AssertionHandler
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !RefUnwindSafe for AssertionHandler
impl !UnwindSafe for AssertionHandler
impl Freeze for AssertionHandler
impl Send for AssertionHandler
impl Sync for AssertionHandler
impl Unpin for AssertionHandler
impl UnsafeUnpin for AssertionHandler
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> 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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request