pub struct PackageManifest {
pub name: String,
pub description: String,
pub version: Option<String>,
pub extensions: Option<Vec<String>>,
pub skills: Option<Vec<String>>,
pub fragments: Option<Vec<String>>,
pub themes: Option<Vec<String>>,
pub disabled: Vec<String>,
}Expand description
Parsed package manifest from package.toml.
Fields§
§name: StringPackage name. Required, non-empty. Lowercase ASCII letters, digits, and hyphens. Maximum 64 characters.
description: StringHuman-readable description. Required, non-empty. Maximum 1024 characters.
version: Option<String>Semantic version string. Optional.
extensions: Option<Vec<String>>Explicit list of extension names to include. When None, all
discovered extensions in the extensions/ subdirectory are included.
skills: Option<Vec<String>>Explicit list of skill names to include. When None, all discovered
skills in the skills/ subdirectory are included.
fragments: Option<Vec<String>>Explicit list of fragment names to include. When None, all discovered
fragments in the fragments/ subdirectory are included.
themes: Option<Vec<String>>Explicit list of theme names to include. When None, all discovered
themes in the themes/ subdirectory are included.
disabled: Vec<String>Resource names to exclude from composition, regardless of type.
Implementations§
Trait Implementations§
Source§impl Clone for PackageManifest
impl Clone for PackageManifest
Source§fn clone(&self) -> PackageManifest
fn clone(&self) -> PackageManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackageManifest
impl Debug for PackageManifest
Source§impl PartialEq for PackageManifest
impl PartialEq for PackageManifest
Source§fn eq(&self, other: &PackageManifest) -> bool
fn eq(&self, other: &PackageManifest) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for PackageManifest
Auto Trait Implementations§
impl Freeze for PackageManifest
impl RefUnwindSafe for PackageManifest
impl Send for PackageManifest
impl Sync for PackageManifest
impl Unpin for PackageManifest
impl UnsafeUnpin for PackageManifest
impl UnwindSafe for PackageManifest
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more