pub struct EntityResult {
pub entity_type: String,
pub start: usize,
pub end: usize,
pub score: f32,
pub text: Option<String>,
pub recognizer_name: String,
}Expand description
A detected entity in the text
Fields§
§entity_type: StringType of entity
start: usizeStart position
end: usizeEnd position
score: f32Confidence score (0.0 to 1.0)
text: Option<String>The detected text
recognizer_name: StringRecognizer that detected this entity
Trait Implementations§
Source§impl Clone for EntityResult
impl Clone for EntityResult
Source§fn clone(&self) -> EntityResult
fn clone(&self) -> EntityResult
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 EntityResult
impl Debug for EntityResult
Source§impl<'de> Deserialize<'de> for EntityResult
impl<'de> Deserialize<'de> for EntityResult
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
Source§impl From<RecognizerResult> for EntityResult
impl From<RecognizerResult> for EntityResult
Source§fn from(result: RecognizerResult) -> Self
fn from(result: RecognizerResult) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EntityResult
impl RefUnwindSafe for EntityResult
impl Send for EntityResult
impl Sync for EntityResult
impl Unpin for EntityResult
impl UnwindSafe for EntityResult
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