pub struct Source {
pub ty: SourceType,
pub url: String,
pub subpath: Option<String>,
pub local_path: Option<PathBuf>,
pub ref: Option<String>,
pub skill_filter: Option<String>,
}Expand description
Parsed source.
Fields§
§ty: SourceTypeSource type.
url: StringPrimary URL for install/download (resolved absolute path for local sources).
subpath: Option<String>Subpath within the repository (e.g. skills/pdf).
local_path: Option<PathBuf>Absolute path when the source is local.
ref: Option<String>Branch or tag ref.
skill_filter: Option<String>Skill name selected via the @skill syntax.
Implementations§
Trait Implementations§
impl Eq for Source
impl StructuralPartialEq for Source
Auto Trait Implementations§
impl Freeze for Source
impl RefUnwindSafe for Source
impl Send for Source
impl Sync for Source
impl Unpin for Source
impl UnsafeUnpin for Source
impl UnwindSafe for Source
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.