pub struct Resources {
pub context_files: Vec<ContextFile>,
pub skills: Vec<Skill>,
pub skill_diagnostics: Vec<Diagnostic>,
pub skill_sources: Vec<SourceInfo>,
pub templates: Vec<PromptTemplate>,
pub template_diagnostics: Vec<Diagnostic>,
pub template_sources: Vec<SourceInfo>,
pub custom_prompt: Option<String>,
pub append_prompt: Option<String>,
pub themes: Vec<SourceInfo>,
}Expand description
Discovered resources the prompt uses.
Fields§
§context_files: Vec<ContextFile>AGENTS.md and CLAUDE.md files.
skills: Vec<Skill>Skills.
skill_diagnostics: Vec<Diagnostic>Problems found while loading skills.
skill_sources: Vec<SourceInfo>The skill files and directories skills came from, each path once.
templates: Vec<PromptTemplate>Prompt templates.
template_diagnostics: Vec<Diagnostic>Problems found while loading prompt templates.
template_sources: Vec<SourceInfo>The template files and directories templates came from, each path
once.
custom_prompt: Option<String>Replaces the default prompt (SYSTEM.md, --system-prompt).
append_prompt: Option<String>Appended to the prompt (APPEND_SYSTEM.md, --append-system-prompt).
themes: Vec<SourceInfo>Theme files and directories with their sources, in precedence order: the first file to declare a name wins.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Resources
impl RefUnwindSafe for Resources
impl Send for Resources
impl Sync for Resources
impl Unpin for Resources
impl UnsafeUnpin for Resources
impl UnwindSafe for Resources
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