pub struct PythonPackageMetadata { /* private fields */ }
Expand description
Represents a Python METADATA file.
Implementations
sourceimpl PythonPackageMetadata
impl PythonPackageMetadata
sourcepub fn from_metadata(data: &[u8]) -> Result<PythonPackageMetadata>
pub fn from_metadata(data: &[u8]) -> Result<PythonPackageMetadata>
Create an instance from data in a METADATA file.
sourcepub fn find_first_header(&self, key: &str) -> Option<&str>
pub fn find_first_header(&self, key: &str) -> Option<&str>
Find the first value of a specified header.
sourcepub fn find_all_headers(&self, key: &str) -> Vec<&str>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
pub fn find_all_headers(&self, key: &str) -> Vec<&str>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Find all values of a specified header.
pub fn name(&self) -> Option<&str>
pub fn version(&self) -> Option<&str>
pub fn license(&self) -> Option<&str>
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more