pub struct PackageMeta {
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub authors: Vec<String>,
pub capabilities: Vec<String>,
pub events: Option<EventPolicy>,
pub resources: IndexMap<&'static str, Vec<String>>,
pub manifest: bool,
}Expand description
What a package says about itself, from its chest.toml [package],
else its package.json.
Fields§
§name: Option<String>[package] name, else package.json name.
version: Option<String>[package] version, else package.json version.
description: Option<String>[package] description, else package.json description.
[package] authors, else package.json author.
capabilities: Vec<String>The capabilities requested: [package] capabilities, else
package.json yapi.capabilities, else none. pi’s key never requests
any.
events: Option<EventPolicy>The event channels it says it uses: [package] events, else
package.json yapi.events.
resources: IndexMap<&'static str, Vec<String>>The resource list of each kind of RESOURCE_KINDS that some source
lists, taken from the first that lists it: [package], then
package.json yapi, then its pi key.
manifest: boolWhether the lists decide the package’s resources, as pi’s manifest
does: a kind none of them lists then provides nothing. True with a
pi key, or with a [package] or yapi key that lists some kind.
Otherwise each kind comes from its conventional folder.
Trait Implementations§
Source§impl Clone for PackageMeta
impl Clone for PackageMeta
Source§impl Debug for PackageMeta
impl Debug for PackageMeta
Source§impl Default for PackageMeta
impl Default for PackageMeta
impl Eq for PackageMeta
Source§impl PartialEq for PackageMeta
impl PartialEq for PackageMeta
impl StructuralPartialEq for PackageMeta
Auto Trait Implementations§
impl Forget for PackageMeta
impl Freeze for PackageMeta
impl RefUnwindSafe for PackageMeta
impl Send for PackageMeta
impl Sync for PackageMeta
impl Unpin for PackageMeta
impl UnsafeUnpin for PackageMeta
impl UnwindSafe for PackageMeta
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
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
key and return true if they are equal.