pub struct PackPrompt {
pub name: String,
pub role: Role,
pub text: String,
pub source: PromptSource,
}Expand description
One declared prompt: text appended to the target role’s rendered prompt.
Fields§
§name: String§role: Role§text: StringThe resolved text (inline text verbatim, or textFile read at load).
source: PromptSourceWhere the text came from, for the lint surface.
Trait Implementations§
Source§impl Clone for PackPrompt
impl Clone for PackPrompt
Source§fn clone(&self) -> PackPrompt
fn clone(&self) -> PackPrompt
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 PackPrompt
impl Debug for PackPrompt
impl Eq for PackPrompt
Source§impl PartialEq for PackPrompt
impl PartialEq for PackPrompt
impl StructuralPartialEq for PackPrompt
Auto Trait Implementations§
impl Freeze for PackPrompt
impl RefUnwindSafe for PackPrompt
impl Send for PackPrompt
impl Sync for PackPrompt
impl Unpin for PackPrompt
impl UnsafeUnpin for PackPrompt
impl UnwindSafe for PackPrompt
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