Struct debian_control::lossy::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>,
}

Fields§

§name: String§depends: Option<Relations>§recommends: Option<Relations>§suggests: Option<Relations>§enhances: Option<Relations>§pre_depends: Option<Relations>§breaks: Option<Relations>§conflicts: Option<Relations>§replaces: Option<Relations>§provides: Option<Relations>§built_using: Option<Relations>§architecture: Option<String>§section: Option<String>§priority: Option<Priority>§multi_arch: Option<MultiArch>§essential: Option<bool>§description: Option<String>

Trait Implementations§

source§

impl Default for Binary

source§

fn default() -> Binary

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

impl FromDeb822Paragraph for Binary

source§

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

Convert a paragraph to this object.
source§

impl ToDeb822Paragraph for Binary

source§

fn to_paragraph(&self) -> Paragraph

Convert this object to a paragraph.
source§

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

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, 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.