pub struct Publish {Show 17 fields
pub name: String,
pub vers: Version,
pub deps: Vec<PublishDependency>,
pub features: HashMap<String, Vec<String>>,
pub authors: Vec<String>,
pub description: Option<String>,
pub documentation: Option<String>,
pub homepage: Option<String>,
pub readme: Option<String>,
pub readme_file: Option<String>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
pub license: Option<String>,
pub license_file: Option<String>,
pub repository: Option<String>,
pub badges: Option<HashMap<String, HashMap<String, String>>>,
pub links: Option<String>,
}index only.Fields§
§name: StringThe name of the package.
vers: VersionThe version of the package being published.
deps: Vec<PublishDependency>Array of direct dependencies of the package.
features: HashMap<String, Vec<String>>Set of features defined for the package.
Each feature maps to an array of features or dependencies it enables.
Cargo does not impose limitations on feature names, but crates.io requires alphanumeric
ASCII, _ or - characters.
List of strings of the authors.
May be empty.
description: Option<String>Description field from the manifest.
May be null. crates.io requires at least some content.
documentation: Option<String>String of the URL to the website for this package’s documentation.
May be null.
homepage: Option<String>String of the URL to the website for this package’s home page.
May be null.
readme: Option<String>String of the content of the README file.
May be null.
readme_file: Option<String>String of a relative path to a README file in the crate.
May be null.
keywords: Vec<String>Array of strings of keywords for the package.
categories: Vec<String>Array of strings of categories for the package.
license: Option<String>String of the license for the package.
May be null. crates.io requires either license or license_file to be set.
license_file: Option<String>String of a relative path to a license file in the crate.
May be null.
repository: Option<String>String of the URL to the website for the source repository of this package.
May be null.
badges: Option<HashMap<String, HashMap<String, String>>>Optional object of “status” badges.
Each value is an object of arbitrary string to string mappings. crates.io has special interpretation of the format of the badges.
links: Option<String>The links string value from the package’s manifest, or null if not specified.
This field is optional and defaults to null.