Struct cargo::core::manifest::ManifestMetadata[][src]

pub struct ManifestMetadata {
    pub authors: Vec<String>,
    pub keywords: Vec<String>,
    pub categories: Vec<String>,
    pub license: Option<String>,
    pub license_file: Option<String>,
    pub description: Option<String>,
    pub readme: Option<String>,
    pub homepage: Option<String>,
    pub repository: Option<String>,
    pub documentation: Option<String>,
    pub badges: BTreeMap<String, BTreeMap<String, String>>,
    pub links: Option<String>,
}

General metadata about a package which is just blindly uploaded to the registry.

Note that many of these fields can contain invalid values such as the homepage, repository, documentation, or license. These fields are not validated by cargo itself, but rather it is up to the registry when uploaded to validate these fields. Cargo will itself accept any valid TOML specification for these values.

Fields

authors: Vec<String>keywords: Vec<String>categories: Vec<String>license: Option<String>license_file: Option<String>description: Option<String>readme: Option<String>homepage: Option<String>repository: Option<String>documentation: Option<String>badges: BTreeMap<String, BTreeMap<String, String>>links: Option<String>

Trait Implementations

impl Clone for ManifestMetadata[src]

impl Debug for ManifestMetadata[src]

impl PartialEq<ManifestMetadata> for ManifestMetadata[src]

impl StructuralPartialEq for ManifestMetadata[src]

Auto Trait Implementations

impl RefUnwindSafe for ManifestMetadata

impl Send for ManifestMetadata

impl Sync for ManifestMetadata

impl Unpin for ManifestMetadata

impl UnwindSafe for ManifestMetadata

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T[src]

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]