pub struct LineScanResult {
pub line_number: usize,
pub findings: Vec<PiiEntity>,
pub masked_line: Option<String>,
}Expand description
PII findings for one line of plaintext.
Spans are byte offsets relative to the line content.
Fields§
§line_number: usizeOne-based line number.
findings: Vec<PiiEntity>Findings detected on this line.
masked_line: Option<String>Masked line when the scanner has masking enabled.
Trait Implementations§
Source§impl Clone for LineScanResult
impl Clone for LineScanResult
Source§fn clone(&self) -> LineScanResult
fn clone(&self) -> LineScanResult
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 LineScanResult
impl Debug for LineScanResult
Source§impl<'de> Deserialize<'de> for LineScanResult
impl<'de> Deserialize<'de> for LineScanResult
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 LineScanResult
impl PartialEq for LineScanResult
Source§fn eq(&self, other: &LineScanResult) -> bool
fn eq(&self, other: &LineScanResult) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LineScanResult
impl Serialize for LineScanResult
impl StructuralPartialEq for LineScanResult
Auto Trait Implementations§
impl Freeze for LineScanResult
impl RefUnwindSafe for LineScanResult
impl Send for LineScanResult
impl Sync for LineScanResult
impl Unpin for LineScanResult
impl UnsafeUnpin for LineScanResult
impl UnwindSafe for LineScanResult
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