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<IndexMap<String, String>>, pub entry_points: Option<IndexMap<String, IndexMap<String, String>>>, pub scripts: Option<IndexMap<String, String>>, pub gui_scripts: Option<IndexMap<String, String>>, pub dependencies: Option<Vec<String>>, pub optional_dependencies: Option<IndexMap<String, Vec<String>>>, pub dynamic: Option<Vec<String>>,
Expand description

PEP 621 project metadata


§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>


§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<IndexMap<String, String>>

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

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

Entry points

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

Corresponds to the console_scripts group in the core metadata

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

Corresponds to the gui_scripts group in the core metadata

§dependencies: Option<Vec<String>>

Project dependencies

§optional_dependencies: Option<IndexMap<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§


impl Clone for Project


fn clone(&self) -> Project

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for Project


fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl<'de> Deserialize<'de> for Project


fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more

impl Serialize for Project


fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§


impl<T> Any for Twhere T: 'static + ?Sized,


fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.


impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

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


impl<T> ToOwned for Twhere T: Clone,


type Owned = T

The resulting type after obtaining ownership.

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

impl<T, U> TryFrom<U> for Twhere U: Into<T>,


type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,


type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,