pub struct DependencySpec {
pub path: String,
pub version: Option<String>,
}Expand description
Dependency specification without the source field.
Used within resource files to declare dependencies on other resources from the same source repository. The source is implicit and inherited from the resource that declares the dependency.
Fields§
§path: StringPath to the dependency file within the source repository.
This can be either:
- A specific file path:
"agents/helper.md" - A glob pattern:
"agents/*.md","agents/**/review*.md"
version: Option<String>Optional version constraint for the dependency.
If not specified, the version of the declaring resource is used. Supports the same version formats as manifest dependencies:
- Exact version:
"v1.0.0" - Latest:
"latest" - Branch:
"main" - Commit:
"abc123..."
Trait Implementations§
Source§impl Clone for DependencySpec
impl Clone for DependencySpec
Source§fn clone(&self) -> DependencySpec
fn clone(&self) -> DependencySpec
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 DependencySpec
impl Debug for DependencySpec
Source§impl<'de> Deserialize<'de> for DependencySpec
impl<'de> Deserialize<'de> for DependencySpec
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
Source§impl PartialEq for DependencySpec
impl PartialEq for DependencySpec
Source§impl Serialize for DependencySpec
impl Serialize for DependencySpec
impl Eq for DependencySpec
impl StructuralPartialEq for DependencySpec
Auto Trait Implementations§
impl Freeze for DependencySpec
impl RefUnwindSafe for DependencySpec
impl Send for DependencySpec
impl Sync for DependencySpec
impl Unpin for DependencySpec
impl UnwindSafe for DependencySpec
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.