pub struct PromptContentReferences {
pub prompt: Option<PromptContentReference>,
pub plan: Option<PlanContentReference>,
pub diff: Option<DiffContentReference>,
}Expand description
Container for all content references.
This struct holds the resolved references for PROMPT, PLAN, and DIFF content. Each reference may be inline or a file path reference.
Fields§
§prompt: Option<PromptContentReference>Reference to PROMPT.md content.
plan: Option<PlanContentReference>Reference to PLAN.md content.
diff: Option<DiffContentReference>Reference to diff content.
Implementations§
Source§impl PromptContentReferences
impl PromptContentReferences
Sourcepub fn prompt_for_template(&self) -> String
pub fn prompt_for_template(&self) -> String
Get the PROMPT content for template rendering.
Returns the content directly if inline, or instructions to read from file.
Sourcepub fn plan_for_template(&self) -> String
pub fn plan_for_template(&self) -> String
Get the PLAN content for template rendering.
Returns the content directly if inline, or instructions to read from file.
Sourcepub fn diff_for_template(&self) -> String
pub fn diff_for_template(&self) -> String
Get the DIFF content for template rendering.
Returns the content directly if inline, or instructions to use git diff.
Sourcepub fn prompt_is_inline(&self) -> bool
pub fn prompt_is_inline(&self) -> bool
Check if the PROMPT reference is inline.
Sourcepub fn plan_is_inline(&self) -> bool
pub fn plan_is_inline(&self) -> bool
Check if the PLAN reference is inline.
Sourcepub fn diff_is_inline(&self) -> bool
pub fn diff_is_inline(&self) -> bool
Check if the DIFF reference is inline.
Auto Trait Implementations§
impl Freeze for PromptContentReferences
impl RefUnwindSafe for PromptContentReferences
impl Send for PromptContentReferences
impl Sync for PromptContentReferences
impl Unpin for PromptContentReferences
impl UnwindSafe for PromptContentReferences
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more