pub struct HeadResult {
pub url: String,
pub status: u16,
pub content_type: Option<String>,
pub content_language: Option<String>,
pub is_fresh: bool,
pub is_html: bool,
}Expand description
Result of scanning a URL with HEAD.
Fields§
§url: StringThe scanned URL.
status: u16HTTP status code (0 if request failed).
content_type: Option<String>Content type (e.g., “text/html”).
content_language: Option<String>Content language.
is_fresh: boolWhether the page is fresh (has recent Last-Modified or no-cache).
is_html: boolWhether this is an HTML page.
Trait Implementations§
Source§impl Clone for HeadResult
impl Clone for HeadResult
Source§fn clone(&self) -> HeadResult
fn clone(&self) -> HeadResult
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 HeadResult
impl RefUnwindSafe for HeadResult
impl Send for HeadResult
impl Sync for HeadResult
impl Unpin for HeadResult
impl UnsafeUnpin for HeadResult
impl UnwindSafe for HeadResult
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