#[non_exhaustive]pub struct ManifestMetadata {
pub authors: Option<Vec<String>>,
pub description: Option<String>,
pub documentation: Option<String>,
pub homepage: Option<String>,
pub keywords: Option<Vec<String>>,
pub license: Option<String>,
pub license_file: Option<String>,
pub readme: Option<String>,
pub repository: Option<String>,
pub urls: Option<BTreeMap<String, String>>,
pub tool: Option<BTreeMap<String, Value>>,
}Expand description
Various metadata fields from package manifest.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.List of the people or organizations that are considered the “authors” of the package.
description: Option<String>A short blurb about the package.
documentation: Option<String>A URL to a website hosting the crate’s documentation.
homepage: Option<String>A URL to a site that is the home page for this package.
keywords: Option<Vec<String>>An array of strings that describe this package.
license: Option<String>Name of the software license that the package is released under.
Should be an SPDX 2 license expression(opens in a new tab), but this is not validated neither by this crate nor Scarb.
license_file: Option<String>A path to a file containing the text of package’s license (relative to its Scarb.toml).
readme: Option<String>A path to a file in the package root (relative to its Scarb.toml) that contains general
information about the package.
repository: Option<String>A URL to the source repository for this package.
urls: Option<BTreeMap<String, String>>A map of additional internet links related to this package.
tool: Option<BTreeMap<String, Value>>Various unstructured metadata to be used by external tools.
Trait Implementations§
Source§impl Clone for ManifestMetadata
impl Clone for ManifestMetadata
Source§fn clone(&self) -> ManifestMetadata
fn clone(&self) -> ManifestMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more