pub struct AffiliationMatch {
pub substring: String,
pub score: f64,
pub matching_type: String,
pub chosen: bool,
pub organization: Data,
/* private fields */
}Expand description
A single match result from the ROR affiliation API.
Fields§
§substring: StringThe substring of the input that matched.
score: f64Confidence score (0–1).
matching_type: StringMatching strategy used (e.g. “PHRASE”, “COMMON TERMS”, “FUZZY”).
chosen: boolWhether this match was selected as the best result.
organization: DataThe matched ROR organization, converted to Data.
Trait Implementations§
Source§impl Debug for AffiliationMatch
impl Debug for AffiliationMatch
Source§impl<'de> Deserialize<'de> for AffiliationMatch
impl<'de> Deserialize<'de> for AffiliationMatch
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 AffiliationMatch
impl RefUnwindSafe for AffiliationMatch
impl Send for AffiliationMatch
impl Sync for AffiliationMatch
impl Unpin for AffiliationMatch
impl UnsafeUnpin for AffiliationMatch
impl UnwindSafe for AffiliationMatch
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