pub struct FetchedPage {
pub url: String,
pub title: Option<String>,
pub content_type: String,
pub content: String,
pub truncated: bool,
pub retrieved_at: SystemTime,
}Expand description
A fetched page converted into readable text.
Fields§
§url: StringFinal URL after validated redirects.
title: Option<String>HTML title, when one was present.
content_type: StringNormalized response media type without parameters.
content: StringReadable text content.
truncated: boolWhether byte or character limits truncated the page.
retrieved_at: SystemTimeLocal time at which retrieval completed.
Trait Implementations§
Source§impl Clone for FetchedPage
impl Clone for FetchedPage
Source§fn clone(&self) -> FetchedPage
fn clone(&self) -> FetchedPage
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FetchedPage
impl Debug for FetchedPage
impl Eq for FetchedPage
Source§impl PartialEq for FetchedPage
impl PartialEq for FetchedPage
impl StructuralPartialEq for FetchedPage
Auto Trait Implementations§
impl Freeze for FetchedPage
impl RefUnwindSafe for FetchedPage
impl Send for FetchedPage
impl Sync for FetchedPage
impl Unpin for FetchedPage
impl UnsafeUnpin for FetchedPage
impl UnwindSafe for FetchedPage
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