Skip to main content

Analyzable

Trait Analyzable 

Source
pub trait Analyzable {
    // Required methods
    fn id(&self) -> &str;
    fn schema(&self) -> &str;
    fn companies_mentioned(&self) -> Option<&[String]>;
    fn detected_country(&self) -> Option<&[String]>;
    fn detected_language(&self) -> Option<&[String]>;
    fn email_mentioned(&self) -> Option<&[String]>;
    fn iban_mentioned(&self) -> Option<&[String]>;
    fn ip_mentioned(&self) -> Option<&[String]>;
    fn location_mentioned(&self) -> Option<&[String]>;
    fn names_mentioned(&self) -> Option<&[String]>;
    fn people_mentioned(&self) -> Option<&[String]>;
    fn phone_mentioned(&self) -> Option<&[String]>;
}
Expand description

Traits representing FTM schema inheritance hierarchy.

These traits enable polymorphic code that works across entity types. All concrete entity structs implement the traits for their parent schemas. Trait for FTM schema: Analyzable

Required Methods§

Source

fn id(&self) -> &str

Get the entity ID

Source

fn schema(&self) -> &str

Get the schema name

Source

fn companies_mentioned(&self) -> Option<&[String]>

Get Detected companies property

Source

fn detected_country(&self) -> Option<&[String]>

Get Detected country property

Source

fn detected_language(&self) -> Option<&[String]>

Get Detected language property

Source

fn email_mentioned(&self) -> Option<&[String]>

Get Detected e-mail addresses property

Source

fn iban_mentioned(&self) -> Option<&[String]>

Get Detected IBANs property

Source

fn ip_mentioned(&self) -> Option<&[String]>

Get Detected IP addresses property

Source

fn location_mentioned(&self) -> Option<&[String]>

Get Detected locations property

Source

fn names_mentioned(&self) -> Option<&[String]>

Get Detected names property

Source

fn people_mentioned(&self) -> Option<&[String]>

Get Detected people property

Source

fn phone_mentioned(&self) -> Option<&[String]>

Get Detected phones property

Implementors§