pub enum ContentStatus {
Ok,
Empty,
NeedsJs,
TooComplex,
}Expand description
Whether a fetch actually produced content.
An extraction that yields nothing used to be reported exactly like a
successful one — empty content, exit 0 — so a caller could not tell a
blank page from a page whose text never arrives without a browser. Agents
read that as “this page has nothing to say” and moved on.
Variants§
Ok
Content was extracted.
Empty
The document parsed but genuinely holds no text.
NeedsJs
An HTML shell with scripts and no text: the content is rendered by JavaScript, which this fetcher does not run.
TooComplex
The document was too deeply nested to parse within a sane time budget
and was refused before parsing. See webfetch::limits.
Implementations§
Source§impl ContentStatus
impl ContentStatus
Trait Implementations§
Source§impl Clone for ContentStatus
impl Clone for ContentStatus
Source§fn clone(&self) -> ContentStatus
fn clone(&self) -> ContentStatus
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 moreimpl Copy for ContentStatus
Source§impl Debug for ContentStatus
impl Debug for ContentStatus
Source§impl<'de> Deserialize<'de> for ContentStatus
impl<'de> Deserialize<'de> for ContentStatus
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ContentStatus
Source§impl PartialEq for ContentStatus
impl PartialEq for ContentStatus
Source§impl Serialize for ContentStatus
impl Serialize for ContentStatus
impl StructuralPartialEq for ContentStatus
Auto Trait Implementations§
impl Freeze for ContentStatus
impl RefUnwindSafe for ContentStatus
impl Send for ContentStatus
impl Sync for ContentStatus
impl Unpin for ContentStatus
impl UnsafeUnpin for ContentStatus
impl UnwindSafe for ContentStatus
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