Struct pyproject_toml::Project

source ·
pub struct Project {
Show 17 fields pub name: String, pub version: Option<String>, pub description: Option<String>, pub readme: Option<ReadMe>, pub requires_python: Option<String>, pub license: Option<License>, pub authors: Option<Vec<Contact>>, pub maintainers: Option<Vec<Contact>>, pub keywords: Option<Vec<String>>, pub classifiers: Option<Vec<String>>, pub urls: Option<HashMap<String, String>>, pub entry_points: Option<HashMap<String, HashMap<String, String>>>, pub scripts: Option<HashMap<String, String>>, pub gui_scripts: Option<HashMap<String, String>>, pub dependencies: Option<Vec<String>>, pub optional_dependencies: Option<HashMap<String, Vec<String>>>, pub dynamic: Option<Vec<String>>,
}
Expand description

PEP 621 project metadata

Fields§

§name: String

The name of the project

§version: Option<String>

The version of the project as supported by PEP 440

§description: Option<String>

The summary description of the project

§readme: Option<ReadMe>

The full description of the project (i.e. the README)

§requires_python: Option<String>

The Python version requirements of the project

§license: Option<License>

License

§authors: Option<Vec<Contact>>

The people or organizations considered to be the “authors” of the project

§maintainers: Option<Vec<Contact>>

Similar to “authors” in that its exact meaning is open to interpretation

§keywords: Option<Vec<String>>

The keywords for the project

§classifiers: Option<Vec<String>>

Trove classifiers which apply to the project

§urls: Option<HashMap<String, String>>

A table of URLs where the key is the URL label and the value is the URL itself

§entry_points: Option<HashMap<String, HashMap<String, String>>>

Entry points

§scripts: Option<HashMap<String, String>>

Corresponds to the console_scripts group in the core metadata

§gui_scripts: Option<HashMap<String, String>>

Corresponds to the gui_scripts group in the core metadata

§dependencies: Option<Vec<String>>

Project dependencies

§optional_dependencies: Option<HashMap<String, Vec<String>>>

Optional dependencies

§dynamic: Option<Vec<String>>

Specifies which fields listed by PEP 621 were intentionally unspecified so another tool can/will provide such metadata dynamically.

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
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 resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
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.