pub struct Response { /* private fields */ }Implementations§
Source§impl Response
impl Response
pub fn status(&self) -> i32
pub fn status_text(&self) -> String
pub fn version(&self) -> String
pub fn headers(&self) -> JsonValue
pub fn content_type(&self) -> String
pub fn json(&self) -> Result<JsonValue, String>
pub fn xml(&self) -> Result<JsonValue, String>
pub fn body(&self) -> JsonValue
pub fn stream(&self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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