pub struct PromptMappingEntry {
pub placeholder: String,
pub entity_type: EntityType,
pub original: String,
pub span_start: usize,
pub span_end: usize,
pub confidence: f64,
pub recognizer_id: String,
}Expand description
One placeholder-to-original-value mapping.
Fields§
§placeholder: StringPlaceholder inserted into the sanitized prompt, such as [EMAIL_1].
entity_type: EntityTypeEntity type represented by this placeholder.
original: StringOriginal sensitive value.
span_start: usizeSource prompt start byte offset.
span_end: usizeSource prompt end byte offset.
confidence: f64Detection confidence.
recognizer_id: StringRecognizer that produced the original finding.
Trait Implementations§
Source§impl Clone for PromptMappingEntry
impl Clone for PromptMappingEntry
Source§fn clone(&self) -> PromptMappingEntry
fn clone(&self) -> PromptMappingEntry
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 PromptMappingEntry
impl Debug for PromptMappingEntry
Source§impl<'de> Deserialize<'de> for PromptMappingEntry
impl<'de> Deserialize<'de> for PromptMappingEntry
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 PromptMappingEntry
impl PartialEq for PromptMappingEntry
Source§fn eq(&self, other: &PromptMappingEntry) -> bool
fn eq(&self, other: &PromptMappingEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PromptMappingEntry
impl Serialize for PromptMappingEntry
impl StructuralPartialEq for PromptMappingEntry
Auto Trait Implementations§
impl Freeze for PromptMappingEntry
impl RefUnwindSafe for PromptMappingEntry
impl Send for PromptMappingEntry
impl Sync for PromptMappingEntry
impl Unpin for PromptMappingEntry
impl UnsafeUnpin for PromptMappingEntry
impl UnwindSafe for PromptMappingEntry
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