pub struct Mention {
pub id: String,
pub schema: String,
pub context_country: Option<Vec<String>>,
pub context_email: Option<Vec<String>>,
pub context_phone: Option<Vec<String>>,
pub detected_schema: Option<Vec<String>>,
pub document: Vec<String>,
pub name: Vec<String>,
pub resolved: Option<Vec<String>>,
}Expand description
FTM Schema: Mention
Fields§
§id: String§schema: String§context_country: Option<Vec<String>>Property: Co-occurring countries
context_email: Option<Vec<String>>Property: Co-occurring e-mail addresses
context_phone: Option<Vec<String>>Property: Co-occurring phone numbers
detected_schema: Option<Vec<String>>Property: Detected entity type
document: Vec<String>Property: Document
name: Vec<String>Property: Name
resolved: Option<Vec<String>>Property: Entity
Implementations§
Source§impl Mention
impl Mention
Sourcepub fn builder() -> MentionBuilder
pub fn builder() -> MentionBuilder
Create an instance of Mention using the builder syntax
Source§impl Mention
impl Mention
Sourcepub fn new(id: impl Into<String>) -> Self
👎Deprecated: Use the builder() method instead to ensure required fields are set
pub fn new(id: impl Into<String>) -> Self
Create a new entity with the given ID
Sourcepub fn schema_name() -> &'static str
pub fn schema_name() -> &'static str
Get the schema name
Sourcepub fn to_ftm_json(&self) -> Result<String, Error>
pub fn to_ftm_json(&self) -> Result<String, Error>
Serialize to standard FTM nested JSON format
Produces {"id": "...", "schema": "...", "properties": {...}}
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Mention
impl<'de> Deserialize<'de> for Mention
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 Mention
impl RefUnwindSafe for Mention
impl Send for Mention
impl Sync for Mention
impl Unpin for Mention
impl UnsafeUnpin for Mention
impl UnwindSafe for Mention
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