pub enum FieldSource {
JsonLd,
DataAttribute,
MetaTag,
CssPattern,
AriaLabel,
Inferred,
}Expand description
Source of a discovered field.
Variants§
JsonLd
From JSON-LD structured data (highest confidence: 0.99).
DataAttribute
From data-* HTML attributes (confidence: 0.95).
MetaTag
From meta tags (OG, Twitter, etc.) (confidence: 0.90).
CssPattern
From CSS pattern engine selectors (confidence: 0.85).
AriaLabel
From ARIA labels (confidence: 0.80).
Inferred
Inferred from feature vector values (confidence: 0.70).
Implementations§
Source§impl FieldSource
impl FieldSource
Sourcepub fn default_confidence(&self) -> f32
pub fn default_confidence(&self) -> f32
Default confidence for this source type.
Trait Implementations§
Source§impl Clone for FieldSource
impl Clone for FieldSource
Source§fn clone(&self) -> FieldSource
fn clone(&self) -> FieldSource
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FieldSource
impl Debug for FieldSource
Source§impl<'de> Deserialize<'de> for FieldSource
impl<'de> Deserialize<'de> for FieldSource
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
Source§impl PartialEq for FieldSource
impl PartialEq for FieldSource
Source§impl Serialize for FieldSource
impl Serialize for FieldSource
impl StructuralPartialEq for FieldSource
Auto Trait Implementations§
impl Freeze for FieldSource
impl RefUnwindSafe for FieldSource
impl Send for FieldSource
impl Sync for FieldSource
impl Unpin for FieldSource
impl UnsafeUnpin for FieldSource
impl UnwindSafe for FieldSource
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