[][src]Struct raur::Package

pub struct Package {
    pub id: u32,
    pub name: String,
    pub package_base_id: u32,
    pub package_base: String,
    pub version: String,
    pub description: Option<String>,
    pub url: Option<String>,
    pub num_votes: u32,
    pub popularity: f64,
    pub out_of_date: Option<i64>,
    pub maintainer: Option<String>,
    pub first_submitted: i64,
    pub last_modified: i64,
    pub url_path: String,
    pub groups: Vec<String>,
    pub depends: Vec<String>,
    pub make_depends: Vec<String>,
    pub opt_depends: Vec<String>,
    pub check_depends: Vec<String>,
    pub conflicts: Vec<String>,
    pub replaces: Vec<String>,
    pub provides: Vec<String>,
    pub license: Vec<String>,
    pub keywords: Vec<String>,
}

The package info that a query will return.

Fields

id: u32

The ID of the package. Mostly used internally, to not have to reference a package by name.

name: String

The name of the package.

package_base_id: u32

The ID associated with the git location of the package.

package_base: String

This is the git URL, usually matches the name of the package.

version: String

The package version.

description: Option<String>

The package description.

url: Option<String>

The URL belonging to the upstream software.

num_votes: u32

The number of votes for the package.

popularity: f64

How often the package is downloaded. Decays over time.

out_of_date: Option<i64>

This is the date that it was marked out-of-date.

maintainer: Option<String>

The name of the package maintainer, if there is one.

first_submitted: i64

The time that the package was first submitted.

last_modified: i64

When the package was last updated.

url_path: String

Path to download this package as a tarball.

groups: Vec<String>

The names of the groups this package belongs to.

depends: Vec<String>

The depenencies of the package itself.

make_depends: Vec<String>

The dependencies that are only relevant while the package is being built.

opt_depends: Vec<String>

Optional dependencies needed to enable certain features.

check_depends: Vec<String>

Dependencies needed for the 'check' stage.

conflicts: Vec<String>

The list of packages that this package conflicts with.

replaces: Vec<String>

The list of packages that this package is capable of replacing.

provides: Vec<String>

The namespace this package provides. For example, a *-git versions of packages provide the same package as non-git versions.

license: Vec<String>

The licenses the package is signed by.

keywords: Vec<String>

Keywords relevant to the package for searching on the AUR.

Trait Implementations

impl Debug for Package[src]

impl<'de> Deserialize<'de> for Package[src]

Auto Trait Implementations

impl Send for Package

impl Sync for Package

Blanket Implementations

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err