pub struct PackageMetadata {Show 14 fields
pub description: Option<String>,
pub first_submitted: u64,
pub id: u32,
pub last_modified: u64,
pub maintainer: Option<String>,
pub name: String,
pub num_votes: u32,
pub out_of_date: Option<u64>,
pub package_base: String,
pub package_base_id: u32,
pub popularity: f64,
pub url: Option<String>,
pub url_path: String,
pub version: String,
}Expand description
Represents the basic information about a package that can be retrieved from a search or by fetching the package info.
Fields§
§description: Option<String>§first_submitted: u64§id: u32§last_modified: u64§maintainer: Option<String>§name: String§num_votes: u32§out_of_date: Option<u64>§package_base: String§package_base_id: u32§popularity: f64§url: Option<String>§url_path: String§version: StringTrait Implementations§
Source§impl Clone for PackageMetadata
impl Clone for PackageMetadata
Source§fn clone(&self) -> PackageMetadata
fn clone(&self) -> PackageMetadata
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 PackageMetadata
impl Debug for PackageMetadata
Source§impl<'de> Deserialize<'de> for PackageMetadata
impl<'de> Deserialize<'de> for PackageMetadata
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 PackageMetadata
impl RefUnwindSafe for PackageMetadata
impl Send for PackageMetadata
impl Sync for PackageMetadata
impl Unpin for PackageMetadata
impl UnwindSafe for PackageMetadata
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