Struct cargo_toml2::Package

source ·
pub struct Package {
Show 24 fields pub name: String, pub version: String, pub authors: Vec<String>, pub edition: Option<String>, pub build: Option<StringOrBool>, pub links: Option<String>, pub documentation: Option<String>, pub exclude: Option<Vec<String>>, pub include: Option<Vec<String>>, pub publish: Option<bool>, pub workspace: Option<PathBuf>, pub description: Option<String>, pub homepage: Option<String>, pub repository: Option<String>, pub readme: Option<String>, pub keywords: Option<Vec<String>>, pub categories: Option<Vec<String>>, pub license: Option<String>, pub license_file: Option<String>, pub autobins: Option<bool>, pub autoexamples: Option<bool>, pub autotests: Option<bool>, pub autobenches: Option<bool>, pub metadata: Option<BTreeMap<String, Value>>,
}

Fields

name: Stringversion: Stringauthors: Vec<String>edition: Option<String>build: Option<StringOrBool>links: Option<String>documentation: Option<String>exclude: Option<Vec<String>>include: Option<Vec<String>>publish: Option<bool>workspace: Option<PathBuf>description: Option<String>homepage: Option<String>repository: Option<String>readme: Option<String>keywords: Option<Vec<String>>categories: Option<Vec<String>>license: Option<String>license_file: Option<String>autobins: Option<bool>autoexamples: Option<bool>autotests: Option<bool>autobenches: Option<bool>metadata: Option<BTreeMap<String, Value>>

Trait Implementations

Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.