pub struct Rest {
pub status: u16,
pub etag: Option<String>,
pub link: Option<String>,
pub body: String,
}Expand description
A REST response from Client::get. status is 304, with an empty
body, when the ETag given still matches.
Fields§
§status: u16§etag: Option<String>§link: Option<String>The Link header, which names the next page of a list.
body: StringTrait Implementations§
Auto Trait Implementations§
impl Forget for Rest
impl Freeze for Rest
impl Move for Rest
impl RefUnwindSafe for Rest
impl Send for Rest
impl Sync for Rest
impl Unpin for Rest
impl UnsafeUnpin for Rest
impl UnwindSafe for Rest
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