pub struct PackageInfo {
pub name: String,
pub version: String,
pub summary: Option<String>,
pub home_page: Option<String>,
pub author: Option<String>,
pub author_email: Option<String>,
pub license: Option<String>,
pub requires_python: Option<String>,
pub requires_dist: Option<Vec<String>>,
pub project_urls: Option<HashMap<String, String>>,
}Expand description
Package metadata from the info field
Fields§
§name: StringPackage name
version: StringLatest version
summary: Option<String>Package summary/description
home_page: Option<String>Project homepage
Author name
Author email
license: Option<String>License
requires_python: Option<String>Requires Python version
requires_dist: Option<Vec<String>>Dependencies (requires_dist)
project_urls: Option<HashMap<String, String>>Project URLs
Trait Implementations§
Source§impl Clone for PackageInfo
impl Clone for PackageInfo
Source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PackageInfo
impl Debug for PackageInfo
Source§impl<'de> Deserialize<'de> for PackageInfo
impl<'de> Deserialize<'de> for PackageInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PackageInfo
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more