pub struct TestRequest { /* private fields */ }Implementations§
Source§impl TestRequest
impl TestRequest
pub fn header(self, name: &str, value: &str) -> Self
pub fn accept_json(self) -> Self
pub fn json(self, body: &Value) -> Self
pub fn form(self, fields: &[(&str, &str)]) -> Self
pub fn body(self, body: impl Into<Bytes>) -> Self
pub fn session(self, session: &TestSession) -> Self
pub fn htmx(self, target: &str) -> Self
pub fn trigger(self, id: &str) -> Self
Trait Implementations§
Source§impl IntoFuture for TestRequest
impl IntoFuture for TestRequest
Source§type Output = TestResponse
type Output = TestResponse
The output that the future will produce on completion.
Source§type IntoFuture = Pin<Box<dyn Future<Output = TestResponse> + Send>>
type IntoFuture = Pin<Box<dyn Future<Output = TestResponse> + Send>>
Which kind of future are we turning this into?
Source§fn into_future(self) -> Self::IntoFuture
fn into_future(self) -> Self::IntoFuture
Creates a future from a value. Read more
Auto Trait Implementations§
impl !Freeze for TestRequest
impl !RefUnwindSafe for TestRequest
impl !UnwindSafe for TestRequest
impl Send for TestRequest
impl Sync for TestRequest
impl Unpin for TestRequest
impl UnsafeUnpin for TestRequest
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