Struct mlscraper_rust::search::Attribute
source · pub struct Attribute<'a> { /* private fields */ }
Expand description
An attribute of a (multiple) web page(s) that is to be scraped. It is recommended to use AttributeBuilder to construct Attributes.
Must have a user-defined arbitrary but unique name for identification purposes.
Must have one value per document (although this value may be None
if
no value is expected on a particular document). The order of the values
must be consistent with the order of the documents as passed to Training.
Additionally, a filter function may be defined. A selector for this attribute is only considered valid if the filter function returns true on it.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Attribute<'a>
impl<'a> !Send for Attribute<'a>
impl<'a> !Sync for Attribute<'a>
impl<'a> Unpin for Attribute<'a>
impl<'a> !UnwindSafe for Attribute<'a>
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