pub struct PromptContext {
pub spec_content: Option<String>,
pub design_content: Option<String>,
pub examples: Vec<String>,
pub architecture_docs: Vec<String>,
pub steering_rules: Vec<String>,
}Expand description
Context included in a prompt
Fields§
§spec_content: Option<String>Spec content
design_content: Option<String>Design content
examples: Vec<String>Project examples
architecture_docs: Vec<String>Architecture documentation
steering_rules: Vec<String>Steering rules content
Trait Implementations§
Source§impl Clone for PromptContext
impl Clone for PromptContext
Source§fn clone(&self) -> PromptContext
fn clone(&self) -> PromptContext
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 PromptContext
impl Debug for PromptContext
Source§impl<'de> Deserialize<'de> for PromptContext
impl<'de> Deserialize<'de> for PromptContext
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
Auto Trait Implementations§
impl Freeze for PromptContext
impl RefUnwindSafe for PromptContext
impl Send for PromptContext
impl Sync for PromptContext
impl Unpin for PromptContext
impl UnwindSafe for PromptContext
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