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 moreSource§impl Debug for DependencyData
impl Debug for DependencyData
Source§impl<'de> Deserialize<'de> for DependencyData
impl<'de> Deserialize<'de> for DependencyData
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>,
Auto Trait Implementations§
impl Freeze for DependencyData
impl RefUnwindSafe for DependencyData
impl Send for DependencyData
impl Sync for DependencyData
impl Unpin for DependencyData
impl UnwindSafe for DependencyData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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