pub struct ExtractedEntity {
pub text: String,
pub entity_type: String,
pub start: usize,
pub end: usize,
pub confidence: f32,
}Expand description
Extracted entity from query
Fields§
§text: StringEntity text as it appears in query
entity_type: StringEntity type (Person, Organization, Location, etc.)
start: usizeStart position in original query
end: usizeEnd position in original query
confidence: f32Confidence score
Trait Implementations§
Source§impl Clone for ExtractedEntity
impl Clone for ExtractedEntity
Source§fn clone(&self) -> ExtractedEntity
fn clone(&self) -> ExtractedEntity
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExtractedEntity
impl Debug for ExtractedEntity
Source§impl<'de> Deserialize<'de> for ExtractedEntity
impl<'de> Deserialize<'de> for ExtractedEntity
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 ExtractedEntity
impl RefUnwindSafe for ExtractedEntity
impl Send for ExtractedEntity
impl Sync for ExtractedEntity
impl Unpin for ExtractedEntity
impl UnwindSafe for ExtractedEntity
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