pub struct Target { /* private fields */ }Expand description
One GET target and optional exact response validation.
Implementations§
Source§impl Target
impl Target
pub fn new(url: &str) -> Result<Self, BreakReason>
pub fn expect_status(self, status: StatusCode) -> Self
pub fn expect_body(self, body: impl Into<Bytes>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Target
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnsafeUnpin for Target
impl UnwindSafe for Target
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