pub struct DependencyData {
pub resource_type: String,
pub name: String,
pub install_path: String,
pub source: Option<String>,
pub version: Option<String>,
pub resolved_commit: Option<String>,
pub checksum: String,
pub path: String,
pub content: String,
}Expand description
Complete data about a dependency for template embedding.
This struct represents a dependency that can be embedded in templates
(available as agpm.deps.<type>.<name> in templates). It includes
the processed content of the dependency file, ready for embedding.
Fields§
§resource_type: StringResource type (agent, snippet, command, etc.)
name: StringLogical resource name from manifest
install_path: StringResolved installation path
source: Option<String>Source identifier (if applicable)
version: Option<String>Resolved version (if applicable)
resolved_commit: Option<String>Git commit SHA (if applicable)
checksum: StringSHA256 checksum of the content
path: StringSource-relative path in repository
content: StringProcessed content of the dependency file.
Contains the file content with metadata stripped and optionally rendered:
- For Markdown: Content without YAML frontmatter
- For JSON: Content without metadata fields
This enables template embedding via {{ agpm.deps.<type>.<name>.content }}.
Note: This field is large and should not be printed in debug output. Use the Debug impl which shows only the content length.
Trait Implementations§
Source§impl Clone for DependencyData
impl Clone for DependencyData
Source§fn clone(&self) -> DependencyData
fn clone(&self) -> DependencyData
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more