Struct maturin::Metadata21[][src]

pub struct Metadata21 {
Show 27 fields pub metadata_version: String, pub name: String, pub version: String, pub platform: Vec<String>, pub supported_platform: Vec<String>, pub summary: Option<String>, pub description: Option<String>, pub description_content_type: Option<String>, pub keywords: Option<String>, pub home_page: Option<String>, pub download_url: Option<String>, pub author: Option<String>, pub author_email: Option<String>, pub maintainer: Option<String>, pub maintainer_email: Option<String>, pub license: Option<String>, pub classifiers: Vec<String>, pub requires_dist: Vec<String>, pub provides_dist: Vec<String>, pub obsoletes_dist: Vec<String>, pub requires_python: Option<String>, pub requires_external: Vec<String>, pub project_url: HashMap<String, String>, pub provides_extra: Vec<String>, pub scripts: HashMap<String, String>, pub gui_scripts: HashMap<String, String>, pub entry_points: HashMap<String, HashMap<String, String>>,
}
Expand description

Python Package Metadata 2.1 as specified in https://packaging.python.org/specifications/core-metadata/

Fields

metadata_version: Stringname: Stringversion: Stringplatform: Vec<String>supported_platform: Vec<String>summary: Option<String>description: Option<String>description_content_type: Option<String>keywords: Option<String>home_page: Option<String>download_url: Option<String>author: Option<String>author_email: Option<String>maintainer: Option<String>maintainer_email: Option<String>license: Option<String>classifiers: Vec<String>requires_dist: Vec<String>provides_dist: Vec<String>obsoletes_dist: Vec<String>requires_python: Option<String>requires_external: Vec<String>project_url: HashMap<String, String>provides_extra: Vec<String>scripts: HashMap<String, String>gui_scripts: HashMap<String, String>entry_points: HashMap<String, HashMap<String, String>>

Implementations

Uses a Cargo.toml to create the metadata for python packages

manifest_path must be the directory, not the file

Formats the metadata into a list where keys with multiple values become multiple single-valued key-value pairs. This format is needed for the pypi uploader and for the METADATA file inside wheels

Writes the format for the metadata file inside wheels

Returns the distribution name according to PEP 427, Section “Escaping and Unicode”

Returns the version encoded according to PEP 427, Section “Escaping and Unicode”

Returns the name of the .dist-info directory as defined in the wheel specification

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Compare self to key and return true if they are equal.

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more