pub struct DetectedPrompt {
pub kind: PromptKind,
pub matched_text: String,
}Expand description
A detected prompt with its kind and the matched text.
Fields§
§kind: PromptKind§matched_text: StringTrait Implementations§
Source§impl Clone for DetectedPrompt
impl Clone for DetectedPrompt
Source§fn clone(&self) -> DetectedPrompt
fn clone(&self) -> DetectedPrompt
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 DetectedPrompt
impl Debug for DetectedPrompt
Source§impl PartialEq for DetectedPrompt
impl PartialEq for DetectedPrompt
impl StructuralPartialEq for DetectedPrompt
Auto Trait Implementations§
impl Freeze for DetectedPrompt
impl RefUnwindSafe for DetectedPrompt
impl Send for DetectedPrompt
impl Sync for DetectedPrompt
impl Unpin for DetectedPrompt
impl UnsafeUnpin for DetectedPrompt
impl UnwindSafe for DetectedPrompt
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