pub struct Package {Show 15 fields
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub authors: Vec<String>,
pub license: Option<String>,
pub repository: Option<String>,
pub homepage: Option<String>,
pub keywords: Vec<String>,
pub capabilities: Option<Vec<String>>,
pub events: Option<EventPolicy>,
pub skills: Option<Vec<String>>,
pub agents: Option<Vec<String>>,
pub extensions: Option<Vec<String>>,
pub prompts: Option<Vec<String>>,
pub themes: Option<Vec<String>>,
}Expand description
[package]: what a package says about itself. Its capabilities and
events are requests, which never grant anything by themselves. A
resource list holds paths and globs, with ! excludes, relative to the
package.
Fields§
§name: Option<String>The package name.
version: Option<String>Its version.
description: Option<String>A one-line description.
Its authors, as Name <email>.
license: Option<String>An SPDX license expression.
repository: Option<String>Its source repository URL.
homepage: Option<String>Its home page URL.
keywords: Vec<String>Search keywords.
capabilities: Option<Vec<String>>The capabilities its extensions need.
events: Option<EventPolicy>The pi.events channels its extensions use.
skills: Option<Vec<String>>Its skills.
agents: Option<Vec<String>>Its subagents.
extensions: Option<Vec<String>>Its extension entry files.
prompts: Option<Vec<String>>Its prompt templates.
themes: Option<Vec<String>>Its themes.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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
impl Eq for Package
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Forget for Package
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.