pub struct AssembledPrompt {
pub text: String,
pub flagged: Vec<String>,
pub untrusted_sources: Vec<String>,
}Expand description
Result of assembling trusted + untrusted content.
Fields§
§text: String§flagged: Vec<String>Reasons reported by the injection screen, if any.
untrusted_sources: Vec<String>Sources of untrusted spans consumed (taint provenance).
Trait Implementations§
Source§impl Clone for AssembledPrompt
impl Clone for AssembledPrompt
Source§fn clone(&self) -> AssembledPrompt
fn clone(&self) -> AssembledPrompt
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 AssembledPrompt
impl Debug for AssembledPrompt
Source§impl Default for AssembledPrompt
impl Default for AssembledPrompt
Source§fn default() -> AssembledPrompt
fn default() -> AssembledPrompt
Returns the “default value” for a type. Read more
impl Eq for AssembledPrompt
Source§impl PartialEq for AssembledPrompt
impl PartialEq for AssembledPrompt
Source§fn eq(&self, other: &AssembledPrompt) -> bool
fn eq(&self, other: &AssembledPrompt) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AssembledPrompt
Auto Trait Implementations§
impl Freeze for AssembledPrompt
impl RefUnwindSafe for AssembledPrompt
impl Send for AssembledPrompt
impl Sync for AssembledPrompt
impl Unpin for AssembledPrompt
impl UnsafeUnpin for AssembledPrompt
impl UnwindSafe for AssembledPrompt
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