pub struct PackageWithData {Show 13 fields
pub id: i32,
pub slug: String,
pub name: String,
pub description: String,
pub authors: Vec<User>,
pub readme: String,
pub source: Option<String>,
pub issues: Option<String>,
pub wiki: Option<String>,
pub views: i32,
pub downloads: i32,
pub created_at: NaiveDateTime,
pub updated_at: NaiveDateTime,
}Expand description
A struct representing a package.
Fields§
§id: i32The package’s numerical ID.
slug: StringThis package’s slug (URL ID).
name: StringThe name of the package.
description: StringA short description of the package.
A list of this package’s authors.
readme: StringThis package’s README, a long-form description of the package.
source: Option<String>A link to the source code repository of this package.
issues: Option<String>A link to this package’s issue tracker.
wiki: Option<String>A link to this package’s wiki.
views: i32The number of views this package has.
downloads: i32The number of downloads this package has.
created_at: NaiveDateTimeThe date/time when this package was created.
updated_at: NaiveDateTimeThe date/time when this package was last updated.
Trait Implementations§
Source§impl Clone for PackageWithData
impl Clone for PackageWithData
Source§fn clone(&self) -> PackageWithData
fn clone(&self) -> PackageWithData
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 PackageWithData
impl Debug for PackageWithData
Source§impl<'de> Deserialize<'de> for PackageWithData
impl<'de> Deserialize<'de> for PackageWithData
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 Eq for PackageWithData
Source§impl Hash for PackageWithData
impl Hash for PackageWithData
Source§impl Ord for PackageWithData
impl Ord for PackageWithData
Source§fn cmp(&self, other: &PackageWithData) -> Ordering
fn cmp(&self, other: &PackageWithData) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for PackageWithData
impl PartialEq for PackageWithData
Source§impl PartialOrd for PackageWithData
impl PartialOrd for PackageWithData
Source§impl Serialize for PackageWithData
impl Serialize for PackageWithData
impl StructuralPartialEq for PackageWithData
Auto Trait Implementations§
impl Freeze for PackageWithData
impl RefUnwindSafe for PackageWithData
impl Send for PackageWithData
impl Sync for PackageWithData
impl Unpin for PackageWithData
impl UnsafeUnpin for PackageWithData
impl UnwindSafe for PackageWithData
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