pub struct PackageInfo {
pub name: PackageName,
pub description: Option<String>,
pub repository: Option<String>,
pub documentation: Option<String>,
pub latest_version: ConcreteVersion,
}Expand description
Package metadata from a NuGet search result.
Fields§
§name: PackageName§description: Option<String>§repository: Option<String>§documentation: Option<String>§latest_version: ConcreteVersionTrait 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 (const: unstable) · 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 Metadata for PackageInfo
impl Metadata for PackageInfo
Source§fn name(&self) -> &PackageName
fn name(&self) -> &PackageName
The package name as the registry reports it. Read more
Source§fn description(&self) -> Option<&str>
fn description(&self) -> Option<&str>
Short description (optional).
Source§fn repository(&self) -> Option<&str>
fn repository(&self) -> Option<&str>
Repository URL (optional).
Source§fn documentation(&self) -> Option<&str>
fn documentation(&self) -> Option<&str>
Documentation URL (optional).
Source§fn latest_version(&self) -> &ConcreteVersion
fn latest_version(&self) -> &ConcreteVersion
Latest stable version.
Auto Trait Implementations§
impl Freeze for PackageInfo
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnsafeUnpin 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