pub struct LinoResponse {
pub status: u16,
pub headers: Headers,
pub data: Option<LinoValue>,
pub text: String,
pub etag: Option<String>,
pub location: Option<String>,
}Expand description
A decoded response.
Fields§
§status: u16HTTP status code.
headers: HeadersResponse headers.
data: Option<LinoValue>Decoded body, or None when the response carried none.
text: StringThe body as it arrived, for representations this client cannot decode.
etag: Option<String>The ETag of the representation, when it carries one.
location: Option<String>The Location of a created resource, when the response carries one.
Implementations§
Source§impl LinoResponse
impl LinoResponse
Trait Implementations§
Source§impl Clone for LinoResponse
impl Clone for LinoResponse
Source§impl Debug for LinoResponse
impl Debug for LinoResponse
Source§impl PartialEq for LinoResponse
impl PartialEq for LinoResponse
impl StructuralPartialEq for LinoResponse
Auto Trait Implementations§
impl Freeze for LinoResponse
impl RefUnwindSafe for LinoResponse
impl Send for LinoResponse
impl Sync for LinoResponse
impl Unpin for LinoResponse
impl UnsafeUnpin for LinoResponse
impl UnwindSafe for LinoResponse
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