pub struct Response {
pub status: u16,
pub etag: Option<String>,
pub link: Option<String>,
pub body: String,
}Expand description
A REST response. status is 304, with an empty body, when the ETag
given still matches.
Fields§
§status: u16§etag: Option<String>§link: Option<String>§body: StringTrait Implementations§
Auto Trait Implementations§
impl Forget for Response
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