Struct axum_restful::test_helpers::TestResponse
source · pub struct TestResponse { /* private fields */ }Implementations§
source§impl TestResponse
impl TestResponse
pub async fn bytes(self) -> Bytes
pub async fn text(self) -> String
pub async fn json<T>(self) -> Twhere
T: DeserializeOwned,
pub fn status(&self) -> StatusCode
pub fn headers(&self) -> HeaderMap
pub async fn chunk(&mut self) -> Option<Bytes>
pub async fn chunk_text(&mut self) -> Option<String>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for TestResponse
impl Send for TestResponse
impl Sync for TestResponse
impl Unpin for TestResponse
impl !UnwindSafe for TestResponse
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