pub trait FromXPath {
type XPathExtractResult;
// Required method
fn from_xhtml(html: XHtml) -> Self::XPathExtractResult;
}
Expand description
Use XPath to extract the HTML response body into the derived struct
Required Associated Types§
Sourcetype XPathExtractResult
type XPathExtractResult
extract result by xpath
Required Methods§
Sourcefn from_xhtml(html: XHtml) -> Self::XPathExtractResult
fn from_xhtml(html: XHtml) -> Self::XPathExtractResult
From Html Response
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.