pub struct PackageInfo {Show 14 fields
pub name: EcoString,
pub version: PackageVersion,
pub entrypoint: EcoString,
pub authors: Vec<EcoString>,
pub license: Option<EcoString>,
pub description: Option<EcoString>,
pub homepage: Option<EcoString>,
pub repository: Option<EcoString>,
pub keywords: Vec<EcoString>,
pub categories: Vec<EcoString>,
pub disciplines: Vec<EcoString>,
pub compiler: Option<VersionBound>,
pub exclude: Vec<EcoString>,
pub unknown_fields: UnknownFields,
}Expand description
The [package] key in the manifest.
The unknown_fields contains fields which were found but not expected.
Fields§
§name: EcoStringThe name of the package within its namespace.
version: PackageVersionThe package’s version.
entrypoint: EcoStringThe path of the entrypoint into the package.
A list of the package’s authors.
license: Option<EcoString>The package’s license.
description: Option<EcoString>A short description of the package.
homepage: Option<EcoString>A link to the package’s web presence.
repository: Option<EcoString>A link to the repository where this package is developed.
keywords: Vec<EcoString>An array of search keywords for the package.
categories: Vec<EcoString>An array with up to three of the predefined categories to help users discover the package.
disciplines: Vec<EcoString>An array of disciplines defining the target audience for which the package is useful.
compiler: Option<VersionBound>The minimum required compiler version for the package.
exclude: Vec<EcoString>An array of globs specifying files that should not be part of the published bundle.
unknown_fields: UnknownFieldsAll parsed but unknown fields, this can be used for validation.
Implementations§
Source§impl PackageInfo
impl PackageInfo
Trait Implementations§
Source§impl Clone for PackageInfo
impl Clone for PackageInfo
Source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PackageInfo
impl Debug for PackageInfo
Source§impl<'de> Deserialize<'de> for PackageInfo
impl<'de> Deserialize<'de> for PackageInfo
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>,
Source§impl PartialEq for PackageInfo
impl PartialEq for PackageInfo
Source§impl Serialize for PackageInfo
impl Serialize for PackageInfo
impl StructuralPartialEq for PackageInfo
Auto Trait Implementations§
impl Freeze for PackageInfo
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
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> 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