[−][src]Struct pyo3_pack::Metadata21
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>maintainer: Option<String>maintainer_email: Option<String>license: Option<String>classifier: Vec<String>requires_dist: Vec<String>provides_dist: Vec<String>obsoletes_dist: Vec<String>requires_python: Option<String>requires_external: Vec<String>project_url: Vec<String>provides_extra: Vec<String>Methods
impl Metadata21[src]
pub fn from_cargo_toml(
cargo_toml: &CargoToml,
manifest_path: &Path
) -> Result<Metadata21, Error>[src]
cargo_toml: &CargoToml,
manifest_path: &Path
) -> Result<Metadata21, Error>
Uses a Cargo.toml to create the metadata for python packages
manifest_path must be the directory, not the file
pub fn to_vec(&self) -> Vec<(String, String)>[src]
Formats the metadata into a list of key with multiple values have mutliple singel-valued pairs. This format is needed for the pypi uploader and for the metadata file inside wheels
pub fn to_file_contents(&self) -> String[src]
Writes the format for the metadata file inside wheels
pub fn get_distribution_escaped(&self) -> String[src]
Returns the distribution name according to PEP 427, Section "Escaping and Unicode"
pub fn get_version_escaped(&self) -> String[src]
Returns the version encoded according to PEP 427, Section "Escaping and Unicode"
Trait Implementations
impl Clone for Metadata21[src]
fn clone(&self) -> Metadata21[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Eq for Metadata21[src]
impl PartialEq<Metadata21> for Metadata21[src]
fn eq(&self, other: &Metadata21) -> bool[src]
fn ne(&self, other: &Metadata21) -> bool[src]
impl Debug for Metadata21[src]
impl<'de> Deserialize<'de> for Metadata21[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Serialize for Metadata21[src]
Auto Trait Implementations
impl Send for Metadata21
impl Sync for Metadata21
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = !
try_from)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> DeserializeOwned for T where
T: Deserialize<'de>, [src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self
impl<Q, K> Equivalent for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,