#[non_exhaustive]pub struct FetchedContent {
pub url: String,
pub title: Option<String>,
pub text: String,
pub text_length: usize,
}Expand description
Result of extracting readable content from raw HTML.
Contains only data the extractor actually knows. HTTP metadata (status code, content type, truncation) belongs in the caller that holds the real HTTP response.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.url: String§title: Option<String>§text: String§text_length: usizeCharacter length of the extracted text.
Implementations§
Trait Implementations§
Source§impl Clone for FetchedContent
impl Clone for FetchedContent
Source§fn clone(&self) -> FetchedContent
fn clone(&self) -> FetchedContent
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 moreAuto Trait Implementations§
impl Freeze for FetchedContent
impl RefUnwindSafe for FetchedContent
impl Send for FetchedContent
impl Sync for FetchedContent
impl Unpin for FetchedContent
impl UnsafeUnpin for FetchedContent
impl UnwindSafe for FetchedContent
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