pub struct PackageMetadata {Show 17 fields
pub name: Option<String>,
pub description: Option<String>,
pub long_description: Option<String>,
pub authors: Option<Vec<String>>,
pub package_maintainers: Option<Vec<String>>,
pub website: Option<String>,
pub support_link: Option<String>,
pub documentation: Option<String>,
pub source: Option<String>,
pub issues: Option<String>,
pub community: Option<String>,
pub icon: Option<String>,
pub banner: Option<String>,
pub gallery: Option<Vec<String>>,
pub license: Option<String>,
pub keywords: Option<Vec<String>>,
pub categories: Option<Vec<String>>,
}
Expand description
Nonessential display information about a package
Fields§
§name: Option<String>
The name of the package
description: Option<String>
The short description of the package
long_description: Option<String>
The long description of the package
The authors of the package content
package_maintainers: Option<Vec<String>>
The maintainers of the package file
website: Option<String>
The package’s website
support_link: Option<String>
The package’s support page
documentation: Option<String>
The package’s documentation link
source: Option<String>
The package’s source repository
issues: Option<String>
The package’s issues tracker
community: Option<String>
The package’s online community
icon: Option<String>
A link to the package’s icon
A link to the package’s banner
gallery: Option<Vec<String>>
Links to gallery images for the package
license: Option<String>
The license of the package
keywords: Option<Vec<String>>
The keywords for the package
categories: Option<Vec<String>>
The categories for the package
Implementations§
Trait Implementations§
Source§impl Clone for PackageMetadata
impl Clone for PackageMetadata
Source§fn clone(&self) -> PackageMetadata
fn clone(&self) -> PackageMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PackageMetadata
impl Debug for PackageMetadata
Source§impl Default for PackageMetadata
impl Default for PackageMetadata
Source§fn default() -> PackageMetadata
fn default() -> PackageMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PackageMetadata
impl<'de> Deserialize<'de> for PackageMetadata
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
Auto Trait Implementations§
impl Freeze for PackageMetadata
impl RefUnwindSafe for PackageMetadata
impl Send for PackageMetadata
impl Sync for PackageMetadata
impl Unpin for PackageMetadata
impl UnwindSafe for PackageMetadata
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,
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>
Converts
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>
Converts
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