#[non_exhaustive]pub struct EmittedTokenSpan {
pub clean_span: Range<usize>,
pub raw_span: Range<usize>,
pub class: PiiClass,
}Expand description
A replacement emitted by the pseudonymization pipeline.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.clean_span: Range<usize>Byte span in the clean text.
raw_span: Range<usize>Byte span in the raw text that produced the token.
class: PiiClassPII class represented by the emitted token.
Implementations§
Trait Implementations§
Source§impl Clone for EmittedTokenSpan
impl Clone for EmittedTokenSpan
Source§fn clone(&self) -> EmittedTokenSpan
fn clone(&self) -> EmittedTokenSpan
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 EmittedTokenSpan
impl Debug for EmittedTokenSpan
Source§impl<'de> Deserialize<'de> for EmittedTokenSpan
impl<'de> Deserialize<'de> for EmittedTokenSpan
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmittedTokenSpan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EmittedTokenSpan, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for EmittedTokenSpan
impl PartialEq for EmittedTokenSpan
Source§fn eq(&self, other: &EmittedTokenSpan) -> bool
fn eq(&self, other: &EmittedTokenSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for EmittedTokenSpan
impl Serialize for EmittedTokenSpan
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for EmittedTokenSpan
impl StructuralPartialEq for EmittedTokenSpan
Auto Trait Implementations§
impl Freeze for EmittedTokenSpan
impl RefUnwindSafe for EmittedTokenSpan
impl Send for EmittedTokenSpan
impl Sync for EmittedTokenSpan
impl Unpin for EmittedTokenSpan
impl UnsafeUnpin for EmittedTokenSpan
impl UnwindSafe for EmittedTokenSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.