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§
Sourcefn companies_mentioned(&self) -> Option<&[String]>
fn companies_mentioned(&self) -> Option<&[String]>
Get Detected companies property
Sourcefn detected_country(&self) -> Option<&[String]>
fn detected_country(&self) -> Option<&[String]>
Get Detected country property
Sourcefn detected_language(&self) -> Option<&[String]>
fn detected_language(&self) -> Option<&[String]>
Get Detected language property
Sourcefn email_mentioned(&self) -> Option<&[String]>
fn email_mentioned(&self) -> Option<&[String]>
Get Detected e-mail addresses property
Sourcefn iban_mentioned(&self) -> Option<&[String]>
fn iban_mentioned(&self) -> Option<&[String]>
Get Detected IBANs property
Sourcefn ip_mentioned(&self) -> Option<&[String]>
fn ip_mentioned(&self) -> Option<&[String]>
Get Detected IP addresses property
Sourcefn location_mentioned(&self) -> Option<&[String]>
fn location_mentioned(&self) -> Option<&[String]>
Get Detected locations property
Sourcefn names_mentioned(&self) -> Option<&[String]>
fn names_mentioned(&self) -> Option<&[String]>
Get Detected names property
Sourcefn people_mentioned(&self) -> Option<&[String]>
fn people_mentioned(&self) -> Option<&[String]>
Get Detected people property
Sourcefn phone_mentioned(&self) -> Option<&[String]>
fn phone_mentioned(&self) -> Option<&[String]>
Get Detected phones property