pub struct Page {
pub url: UrlSerde<Url>,
pub document: String,
pub headers: BTreeMap<String, String>,
pub status: String,
pub urls: Vec<UrlSerde<Url>>,
}
Fields§
§url: UrlSerde<Url>
§document: String
§headers: BTreeMap<String, String>
§status: String
§urls: Vec<UrlSerde<Url>>
Implementations§
Trait Implementations§
source§impl TokenSink for Page
impl TokenSink for Page
type Handle = ()
source§fn process_token(&mut self, token: Token, _: u64) -> TokenSinkResult<()>
fn process_token(&mut self, token: Token, _: u64) -> TokenSinkResult<()>
Process a token.
fn end(&mut self)
source§fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
fn adjusted_current_node_present_but_not_in_html_namespace(&self) -> bool
Used in the markup declaration open state. By default, this always
returns false and thus all CDATA sections are tokenized as bogus
comments.
https://html.spec.whatwg.org/multipage/#markup-declaration-open-state Read more