pub struct HeadResponse {
pub url: String,
pub status: u16,
pub content_type: Option<String>,
pub content_language: Option<String>,
pub last_modified: Option<String>,
pub cache_control: Option<String>,
}Expand description
Response from an HTTP HEAD request.
Fields§
§url: StringRequested URL.
status: u16HTTP status code.
content_type: Option<String>Content-Type header.
content_language: Option<String>Content-Language header.
last_modified: Option<String>Last-Modified header.
cache_control: Option<String>Cache-Control header.
Trait Implementations§
Source§impl Clone for HeadResponse
impl Clone for HeadResponse
Source§fn clone(&self) -> HeadResponse
fn clone(&self) -> HeadResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HeadResponse
impl RefUnwindSafe for HeadResponse
impl Send for HeadResponse
impl Sync for HeadResponse
impl Unpin for HeadResponse
impl UnsafeUnpin for HeadResponse
impl UnwindSafe for HeadResponse
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