pub struct Similar {
pub id: String,
pub schema: String,
pub candidate: Option<Vec<String>>,
pub confidence_score: Option<Vec<f64>>,
pub criteria: Option<Vec<String>>,
pub match_: Option<Vec<String>>,
pub matcher: Option<Vec<String>>,
}Expand description
FTM Schema: Similar
Fields§
§id: String§schema: String§candidate: Option<Vec<String>>Property: Candidate
confidence_score: Option<Vec<f64>>Property: Confidence score
criteria: Option<Vec<String>>Property: Matching criteria
match_: Option<Vec<String>>Property: Match
matcher: Option<Vec<String>>Property: Matcher
Implementations§
Source§impl Similar
impl Similar
Sourcepub fn builder() -> SimilarBuilder
pub fn builder() -> SimilarBuilder
Create an instance of Similar using the builder syntax
Source§impl Similar
impl Similar
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 Similar
impl<'de> Deserialize<'de> for Similar
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 Similar
impl RefUnwindSafe for Similar
impl Send for Similar
impl Sync for Similar
impl Unpin for Similar
impl UnsafeUnpin for Similar
impl UnwindSafe for Similar
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