Struct python_packaging::package_metadata::PythonPackageMetadata [−][src]
Represents a Python METADATA file.
Implementations
impl PythonPackageMetadata
[src]
pub fn from_metadata(data: &[u8]) -> Result<PythonPackageMetadata>
[src]
Create an instance from data in a METADATA file.
pub fn find_first_header(&self, key: &str) -> Option<&str>
[src]
Find the first value of a specified header.
pub fn find_all_headers(&self, key: &str) -> Vec<&str>
[src]
Find all values of a specified header.
pub fn name(&self) -> Option<&str>
[src]
pub fn version(&self) -> Option<&str>
[src]
pub fn license(&self) -> Option<&str>
[src]
Auto Trait Implementations
impl RefUnwindSafe for PythonPackageMetadata
impl Send for PythonPackageMetadata
impl Sync for PythonPackageMetadata
impl Unpin for PythonPackageMetadata
impl UnwindSafe for PythonPackageMetadata
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,