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: EcoString
The name of the package within its namespace.
version: PackageVersion
The package’s version.
entrypoint: EcoString
The 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: UnknownFields
All parsed but unknown fields, this can be used for validation.
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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