pub struct DetectedEntity {
pub original: String,
pub start: usize,
pub end: usize,
pub category: EntityCategory,
pub confidence: f64,
pub source: DetectionSource,
}Expand description
A detected sensitive entity within text.
Fields§
§original: StringThe raw sensitive text that was detected.
start: usizeByte offset start in the source text.
end: usizeByte offset end in the source text.
category: EntityCategoryThe category of sensitive data (e.g., PERSON, ORG, AMOUNT, SECRET).
confidence: f64Detection confidence (0.0–1.0). 1.0 for pattern-based, variable for NER.
source: DetectionSourceWhich detection layer found this entity.
Trait Implementations§
Source§impl Clone for DetectedEntity
impl Clone for DetectedEntity
Source§fn clone(&self) -> DetectedEntity
fn clone(&self) -> DetectedEntity
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 DetectedEntity
impl Debug for DetectedEntity
Source§impl<'de> Deserialize<'de> for DetectedEntity
impl<'de> Deserialize<'de> for DetectedEntity
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 DetectedEntity
impl RefUnwindSafe for DetectedEntity
impl Send for DetectedEntity
impl Sync for DetectedEntity
impl Unpin for DetectedEntity
impl UnsafeUnpin for DetectedEntity
impl UnwindSafe for DetectedEntity
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