Struct lychee_lib::Collector
source · pub struct Collector { /* private fields */ }Expand description
Collector keeps the state of link collection It drives the link extraction from inputs
Implementations§
source§impl Collector
impl Collector
sourcepub const fn skip_missing_inputs(self, yes: bool) -> Self
pub const fn skip_missing_inputs(self, yes: bool) -> Self
Skip missing input files (default is to error if they don’t exist)
sourcepub const fn use_html5ever(self, yes: bool) -> Self
pub const fn use_html5ever(self, yes: bool) -> Self
Use html5ever to parse HTML instead of html5gum.
sourcepub const fn include_verbatim(self, yes: bool) -> Self
pub const fn include_verbatim(self, yes: bool) -> Self
Skip over links in verbatim sections (like Markdown code blocks)
sourcepub fn basic_auth_extractor(self, extractor: BasicAuthExtractor) -> Self
pub fn basic_auth_extractor(self, extractor: BasicAuthExtractor) -> Self
Pass a BasicAuthExtractor which is capable to match found
URIs to basic auth credentials. These credentials get passed to the
request in question.
sourcepub fn collect_sources(
self,
inputs: Vec<Input>
) -> impl Stream<Item = Result<String>>
pub fn collect_sources( self, inputs: Vec<Input> ) -> impl Stream<Item = Result<String>>
Collect all sources from a list of Inputs. For further details,
see also Input::get_sources.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Collector
impl Send for Collector
impl Sync for Collector
impl Unpin for Collector
impl UnwindSafe for Collector
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