|
| 1 | +#[derive(Debug, Clone, Default, PartialEq)] |
| 2 | +pub struct Distribution { |
| 3 | + /// Version of the file format; legal values are “1.0”, “1.1”, “1.2”, “2.1” and “2.2”. |
| 4 | + pub metadata_version: String, |
| 5 | + /// The name of the distribution. |
| 6 | + pub name: String, |
| 7 | + /// A string containing the distribution’s version number. |
| 8 | + pub version: String, |
| 9 | + /// A Platform specification describing an operating system supported by the distribution |
| 10 | + /// which is not listed in the “Operating System” Trove classifiers. |
| 11 | + pub platforms: Vec<String>, |
| 12 | + /// Binary distributions containing a PKG-INFO file will use the Supported-Platform field |
| 13 | + /// in their metadata to specify the OS and CPU for which the binary distribution was compiled. |
| 14 | + pub supported_platforms: Vec<String>, |
| 15 | + /// A one-line summary of what the distribution does. |
| 16 | + pub summary: Option<String>, |
| 17 | + /// A longer description of the distribution that can run to several paragraphs. |
| 18 | + pub description: Option<String>, |
| 19 | + /// A list of additional keywords, separated by commas, to be used to |
| 20 | + /// assist searching for the distribution in a larger catalog. |
| 21 | + pub keywords: Vec<String>, |
| 22 | + /// A string containing the URL for the distribution’s home page. |
| 23 | + pub home_page: Option<String>, |
| 24 | + /// A string containing the URL from which this version of the distribution can be downloaded. |
| 25 | + pub download_url: Option<String>, |
| 26 | + /// A string containing the author’s name at a minimum; additional contact information may be provided. |
| 27 | + pub author: Option<String>, |
| 28 | + /// A string containing the author’s e-mail address. It can contain a name and e-mail address in the legal forms for a RFC-822 `From:` header. |
| 29 | + pub author_email: Option<String>, |
| 30 | + /// Text indicating the license covering the distribution where the license is not a selection from the “License” Trove classifiers. |
| 31 | + pub license: Option<String>, |
| 32 | + /// Each entry is a string giving a single classification value for the distribution. |
| 33 | + pub classifiers: Vec<String>, |
| 34 | + /// Each entry contains a string naming some other distutils project required by this distribution. |
| 35 | + pub requires_dist: Vec<String>, |
| 36 | + /// Each entry contains a string naming a Distutils project which is contained within this distribution. |
| 37 | + pub provides_dist: Vec<String>, |
| 38 | + /// Each entry contains a string describing a distutils project’s distribution which this distribution renders obsolete, |
| 39 | + /// meaning that the two projects should not be installed at the same time. |
| 40 | + pub obsoletes_dist: Vec<String>, |
| 41 | + /// A string containing the maintainer’s name at a minimum; additional contact information may be provided. |
| 42 | + /// |
| 43 | + /// Note that this field is intended for use when a project is being maintained by someone other than the original author: |
| 44 | + /// it should be omitted if it is identical to `author`. |
| 45 | + pub maintainer: Option<String>, |
| 46 | + /// A string containing the maintainer’s e-mail address. |
| 47 | + /// It can contain a name and e-mail address in the legal forms for a RFC-822 `From:` header. |
| 48 | + /// |
| 49 | + /// Note that this field is intended for use when a project is being maintained by someone other than the original author: |
| 50 | + /// it should be omitted if it is identical to `author_email`. |
| 51 | + pub maintainer_email: Option<String>, |
| 52 | + /// This field specifies the Python version(s) that the distribution is guaranteed to be compatible with. |
| 53 | + pub requires_python: Option<String>, |
| 54 | + /// Each entry contains a string describing some dependency in the system that the distribution is to be used. |
| 55 | + pub requires_external: Vec<String>, |
| 56 | + /// A string containing a browsable URL for the project and a label for it, separated by a comma. |
| 57 | + pub project_urls: Vec<String>, |
| 58 | + /// A string containing the name of an optional feature. Must be a valid Python identifier. |
| 59 | + /// May be used to make a dependency conditional on whether the optional feature has been requested. |
| 60 | + pub provides_extras: Vec<String>, |
| 61 | + /// A string stating the markup syntax (if any) used in the distribution’s description, |
| 62 | + /// so that tools can intelligently render the description. |
| 63 | + pub description_content_type: Option<String>, |
| 64 | +} |
0 commit comments