[][src]Struct srcinfo::Package

pub struct Package {
    pub pkgname: String,
    pub pkgdesc: Option<String>,
    pub arch: Vec<String>,
    pub url: Option<String>,
    pub license: Vec<String>,
    pub groups: Vec<String>,
    pub depends: Vec<ArchVec>,
    pub optdepends: Vec<ArchVec>,
    pub provides: Vec<ArchVec>,
    pub conflicts: Vec<ArchVec>,
    pub replaces: Vec<ArchVec>,
    pub backup: Vec<String>,
    pub options: Vec<String>,
    pub install: Option<String>,
    pub changelog: Option<String>,
}

The fields from a .SRCINFO that are unique to each package.

Fields

pkgname: Stringpkgdesc: Option<String>arch: Vec<String>url: Option<String>license: Vec<String>groups: Vec<String>depends: Vec<ArchVec>optdepends: Vec<ArchVec>provides: Vec<ArchVec>conflicts: Vec<ArchVec>replaces: Vec<ArchVec>backup: Vec<String>options: Vec<String>install: Option<String>changelog: Option<String>

Trait Implementations

impl Clone for Package[src]

fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq<Package> for Package[src]

impl PartialOrd<Package> for Package[src]

impl Eq for Package[src]

impl Ord for Package[src]

fn max(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the maximum of two values. Read more

fn min(self, other: Self) -> Self
1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Default for Package[src]

impl Debug for Package[src]

impl Hash for Package[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

impl Send for Package

impl Sync for Package

Blanket Implementations

impl<T> From for T[src]

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.