pub struct Entity {
pub entity_type: String,
pub text: String,
pub start: usize,
pub end: usize,
pub confidence: f32,
pub metadata: HashMap<String, String>,
}Expand description
A detected entity in the scanned text
Fields§
§entity_type: StringType of entity (e.g., “email”, “ssn”, “api_key”)
text: StringThe detected text
start: usizeStart position in original text
end: usizeEnd position in original text
confidence: f32Confidence score (0.0 to 1.0)
metadata: HashMap<String, String>Additional entity-specific data
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entity
impl<'de> Deserialize<'de> for Entity
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
impl StructuralPartialEq for Entity
Auto Trait Implementations§
impl Freeze for Entity
impl RefUnwindSafe for Entity
impl Send for Entity
impl Sync for Entity
impl Unpin for Entity
impl UnwindSafe for Entity
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