pub struct Package {
pub links: Option<Value>,
pub id: Option<String>,
pub is_cached: Option<bool>,
pub name: Option<String>,
pub normalized_name: Option<String>,
pub protocol_type: Option<String>,
pub star_count: Option<i32>,
pub url: Option<String>,
pub versions: Vec<MinimalPackageVersion>,
}Expand description
A package, which is a container for one or more package versions.
Fields§
§links: Option<Value>Links
id: Option<String>Id of the package.
is_cached: Option<bool>Used for legacy scenarios and may be removed in future versions.
name: Option<String>The display name of the package.
normalized_name: Option<String>The normalized name representing the identity of this package within its package type.
protocol_type: Option<String>Type of the package.
star_count: Option<i32>[Obsolete] - this field is unused and will be removed in a future release.
url: Option<String>Url for this package.
versions: Vec<MinimalPackageVersion>All versions for this package within its feed.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
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
impl StructuralPartialEq for Package
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnwindSafe for Package
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