pub struct Tool {
pub extractor: Extractor,
pub links: Option<StreamIdent>,
pub anchors: Option<StreamIdent>,
pub result_format: Type,
pub result_extended: bool,
pub result_flush: bool,
}Expand description
The extended config for the link extractor.
This part is used by the CLI invocation
of the extractor.
See Extractor for the library/programmatic invocation.
Fields§
§extractor: ExtractorThe core part of the configuration.
links: Option<StreamIdent>Where to store links to.
None=> do not extract links,Some(StreamIdent::StdOut)=> extract links and write them to stdout,Some(StreamIdent::Path("/path/to/extracted_links_file.txt".into(), false))=> extract links and write them to filepath.
anchors: Option<StreamIdent>Where to store anchors to.
None=> do not extract anchors,Some(StreamIdent::StdOut)=> extract anchors and write them to stdout,Some(StreamIdent::Path("/path/to/extracted_anchors_file.txt".into(), false))=> extract anchors and write them to filepath.
result_format: Type§result_extended: boolWhether to include non-essential information in the resulting report. Non-essential are things like:
- is the link local
- is the link a URL or to the file-system
- which type of anchor it is (e.g. from a title or anchor tag)
result_flush: boolWhether to flush output streams after each item (link, anchor, error), for the result formats that support it.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Tool
impl<'de> Deserialize<'de> for Tool
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
Auto Trait Implementations§
impl Freeze for Tool
impl RefUnwindSafe for Tool
impl Send for Tool
impl Sync for Tool
impl Unpin for Tool
impl UnsafeUnpin for Tool
impl UnwindSafe for Tool
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