pub struct PromptInfo {
pub prompt_type: String,
pub matched: String,
pub position: usize,
pub confidence: f32,
}Expand description
Prompt detection result.
Fields§
§prompt_type: StringDetected prompt type.
matched: StringMatched prompt text.
position: usizePosition in buffer.
confidence: f32Confidence (0.0-1.0).
Trait Implementations§
Source§impl Clone for PromptInfo
impl Clone for PromptInfo
Source§fn clone(&self) -> PromptInfo
fn clone(&self) -> PromptInfo
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 moreAuto Trait Implementations§
impl Freeze for PromptInfo
impl RefUnwindSafe for PromptInfo
impl Send for PromptInfo
impl Sync for PromptInfo
impl Unpin for PromptInfo
impl UnsafeUnpin for PromptInfo
impl UnwindSafe for PromptInfo
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