pub struct DefaultMatcher { /* private fields */ }Implementations§
Source§impl DefaultMatcher
impl DefaultMatcher
pub fn new() -> Self
Create a matcher that ignores cookies - useful for tests where cookies change
pub fn with_method(self, match_method: bool) -> Self
pub fn with_url(self, match_url: bool) -> Self
pub fn with_headers(self, headers: Vec<String>) -> Self
pub fn with_body(self, match_body: bool) -> Self
Trait Implementations§
Source§impl Debug for DefaultMatcher
impl Debug for DefaultMatcher
Source§impl Default for DefaultMatcher
impl Default for DefaultMatcher
Source§impl RequestMatcher for DefaultMatcher
impl RequestMatcher for DefaultMatcher
fn matches( &self, request: &Request, recorded_request: &SerializableRequest, ) -> bool
fn matches_serializable( &self, request: &SerializableRequest, recorded_request: &SerializableRequest, ) -> bool
Auto Trait Implementations§
impl Freeze for DefaultMatcher
impl RefUnwindSafe for DefaultMatcher
impl Send for DefaultMatcher
impl Sync for DefaultMatcher
impl Unpin for DefaultMatcher
impl UnwindSafe for DefaultMatcher
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