pub struct AddRequest {
pub source: String,
pub global: bool,
pub skills: Vec<String>,
pub list_only: bool,
}Expand description
Request for Manager::add.
The struct is Default + Clone; use AddRequest::new for the common
“install everything from a source” case and struct-update syntax
(..Default::default()) to override just the fields you need.
See the crate-level source formats table for the accepted
source strings.
Fields§
§source: StringSource string (local path, GitHub owner/repo, git URL, or download URL).
global: boolInstall globally (user-level, ~/.agents/skills) instead of project-level.
skills: Vec<String>"*" or specific skill names; empty = all discovered skills.
list_only: boolList available skills without installing anything.
Implementations§
Source§impl AddRequest
impl AddRequest
Sourcepub fn new(source: impl Into<String>) -> Self
pub fn new(source: impl Into<String>) -> Self
Create a request that installs all skills from source with default options.
All other fields default: project scope, all skills.
§Examples
use agents_skills::{AddRequest, Manager};
let req = AddRequest::new("anthropics/skills");
assert_eq!(req.source, "anthropics/skills");
assert!(req.skills.is_empty()); // all discovered skillsTrait Implementations§
Source§impl Clone for AddRequest
impl Clone for AddRequest
Source§fn clone(&self) -> AddRequest
fn clone(&self) -> AddRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AddRequest
impl Debug for AddRequest
Source§impl Default for AddRequest
impl Default for AddRequest
Source§fn default() -> AddRequest
fn default() -> AddRequest
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for AddRequest
impl RefUnwindSafe for AddRequest
impl Send for AddRequest
impl Sync for AddRequest
impl Unpin for AddRequest
impl UnsafeUnpin for AddRequest
impl UnwindSafe for AddRequest
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