Struct Binary

Source
pub struct Binary {
Show 17 fields pub name: String, pub depends: Option<Relations>, pub recommends: Option<Relations>, pub suggests: Option<Relations>, pub enhances: Option<Relations>, pub pre_depends: Option<Relations>, pub breaks: Option<Relations>, pub conflicts: Option<Relations>, pub replaces: Option<Relations>, pub provides: Option<Relations>, pub built_using: Option<Relations>, pub architecture: Option<String>, pub section: Option<String>, pub priority: Option<Priority>, pub multi_arch: Option<MultiArch>, pub essential: Option<bool>, pub description: Option<String>,
}
Expand description

A binary package.

Fields§

§name: String

The name of the package.

§depends: Option<Relations>

The packages that this package depends on.

§recommends: Option<Relations>

The packages that this package recommends.

§suggests: Option<Relations>

The packages that this package suggests.

§enhances: Option<Relations>

The packages that this package enhances.

§pre_depends: Option<Relations>

The packages that this package depends on before it is installed.

§breaks: Option<Relations>

The packages that this package breaks.

§conflicts: Option<Relations>

The packages that this package conflicts with.

§replaces: Option<Relations>

The packages that this package replaces.

§provides: Option<Relations>

The packages that this package provides.

§built_using: Option<Relations>

The packages that this package is built using.

§architecture: Option<String>

The architecture the package is built for.

§section: Option<String>

The section of the package.

§priority: Option<Priority>

The priority of the package.

§multi_arch: Option<MultiArch>

The multi-arch field.

§essential: Option<bool>

Whether the package is essential.

§description: Option<String>

The description of the package. The first line is the short description, and the rest is the long description.

Trait Implementations§

Source§

impl Default for Binary

Source§

fn default() -> Binary

Returns the “default value” for a type. Read more
Source§

impl Display for Binary

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<P: Deb822LikeParagraph> FromDeb822Paragraph<P> for Binary

Source§

fn from_paragraph(para: &P) -> Result<Self, String>

Convert a paragraph to this object.
Source§

impl<P: Deb822LikeParagraph> ToDeb822Paragraph<P> for Binary

Source§

fn to_paragraph(&self) -> P

Convert this object to a paragraph.
Source§

fn update_paragraph(&self, para: &mut P)

Update the given paragraph with the values from this object.

Auto Trait Implementations§

§

impl Freeze for Binary

§

impl RefUnwindSafe for Binary

§

impl Send for Binary

§

impl Sync for Binary

§

impl Unpin for Binary

§

impl UnwindSafe for Binary

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> ErasedDestructor for T
where T: 'static,