pub struct Entry {
pub git: Option<String>,
pub rev: Option<String>,
pub npm: Option<String>,
pub version: Option<String>,
pub path: Option<String>,
pub capabilities: Option<Vec<String>>,
pub events: Option<EventPolicy>,
pub skills: Option<Vec<String>>,
pub prompts: Option<Vec<String>>,
pub themes: Option<Vec<String>>,
}Expand description
An entry of a section. Its source is git or npm, each with an
optional subfolder path, or path alone, a path relative to the
manifest. The keys after path belong to [extensions] entries only.
Fields§
§git: Option<String>A git repository.
rev: Option<String>The branch, tag or commit of git.
npm: Option<String>An npm package name.
version: Option<String>The version range or dist-tag of npm.
path: Option<String>The subfolder of the git or npm package, or the source itself.
capabilities: Option<Vec<String>>The capabilities granted, with the manifest’s defaults. Absent grants none of its own.
events: Option<EventPolicy>Which pi.events channels cross to and from other grants. Absent
is shared.
skills: Option<Vec<String>>The package’s skills to load, as a settings package filter.
prompts: Option<Vec<String>>The package’s prompt templates to load, as a settings package filter.
themes: Option<Vec<String>>The package’s themes to load, as a settings package filter.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Entry
impl<'de> Deserialize<'de> for Entry
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 Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl Freeze for Entry
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnsafeUnpin for Entry
impl UnwindSafe for Entry
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.