pub struct ExtractedEntity {
pub entity_type: String,
pub value: String,
pub text: Option<String>,
pub position: Option<EntityPosition>,
pub confidence: Option<f64>,
}Expand description
An extracted entity from a message.
Fields§
§entity_type: StringEntity type.
value: StringExtracted value.
text: Option<String>Original text snippet.
position: Option<EntityPosition>Position in the message.
confidence: Option<f64>Confidence score (0.0 to 1.0).
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 (const: unstable) · 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
Source§impl PartialEq for ExtractedEntity
impl PartialEq for ExtractedEntity
Source§fn eq(&self, other: &ExtractedEntity) -> bool
fn eq(&self, other: &ExtractedEntity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ExtractedEntity
impl Serialize for ExtractedEntity
impl StructuralPartialEq for ExtractedEntity
Auto Trait Implementations§
impl Freeze for ExtractedEntity
impl RefUnwindSafe for ExtractedEntity
impl Send for ExtractedEntity
impl Sync for ExtractedEntity
impl Unpin for ExtractedEntity
impl UnsafeUnpin 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