pub enum HeaderQueryContent {
Url(String),
Json(Value),
}Available on crate feature
scraper only.Expand description
Return type of get_web_header_json_value.
- If the input is HTML, returns the URL extracted from
<meta name="bmstable">; - If the input is JSON, returns the parsed JSON value.
Variants§
Url(String)
Extracted header JSON URL.
May be relative or absolute; prefer using url::Url::join to resolve.
Json(Value)
Raw header JSON content.
Auto Trait Implementations§
impl Freeze for HeaderQueryContent
impl RefUnwindSafe for HeaderQueryContent
impl Send for HeaderQueryContent
impl Sync for HeaderQueryContent
impl Unpin for HeaderQueryContent
impl UnwindSafe for HeaderQueryContent
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