BinaryControl

Struct BinaryControl 

Source
pub struct BinaryControl {
Show 20 fields pub package: String, pub source: Option<SourceName>, pub version: Version, pub section: Option<String>, pub priority: Option<Priority>, pub architecture: Option<Architecture>, pub essential: Option<String>, pub installed_size: Option<Number<usize>>, pub maintainer: String, pub description: String, pub homepage: Option<String>, pub depends: Option<Dependency>, pub recommends: Option<Dependency>, pub conflicts: Option<Dependency>, pub suggests: Option<Dependency>, pub provides: Option<Dependency>, pub built_using: Option<Dependency>, pub breaks: Option<Dependency>, pub enhances: Option<Dependency>, pub pre_depends: Option<Dependency>,
}
Expand description

Debian binary (.deb) binary control file (sometimes called DEBIAN/control – note the upper case), as seen in binary deb files.

Fields§

§package: String

Binary package name

§source: Option<SourceName>

The value of this field determines the package name, and is used to generate file names by most installation tools.

§version: Version

Typically, this is the original package’s Version number in whatever form the program’s author uses. It may also include a Debian revision number (for non-native packages).

§section: Option<String>

Archive Section that this package belongs to.

§priority: Option<Priority>

Priority of the binary package.

§architecture: Option<Architecture>

Lists the crate::architecture::Architecture of the files contained in this package. Common architectures are amd64, armel, i386, (crate::architecture::AMD64, crate::architecture::ARMEL, crate::architecture::I386), etc.

§essential: Option<String>

If set, and set to “yes”, this package is an essential package, which has special-cased handling in dpkg and apt.

§installed_size: Option<Number<usize>>

Size of the package’s contents on-disk.

§maintainer: String

Name and email of the package’s maintainer.

§description: String

Description of this binary package’s purpose.

§homepage: Option<String>

The upstream project home page url.

§depends: Option<Dependency>

Packages that this binary package requires be installed in order to be fully installed.

§recommends: Option<Dependency>

Packages which this binary package needs to be installed in all but the most unusual installs. Removing one may cause breakage if their purpose is not understood.

§conflicts: Option<Dependency>

Packages which this binary package must not be installed at the same time as.

§suggests: Option<Dependency>

Packages which could be interesting to be installed along with this package.

§provides: Option<Dependency>

Virtual packages this package provides.

§built_using: Option<Dependency>

Packages that were used to produce this binary file.

This is used from within the archive to ensure that source packages are not removed when their source is still included in a binary, but it may also be helpful to use when tracking down issues or triaging what packages need to be rebuilt.

§breaks: Option<Dependency>

Packages which will become broken by the installation of this binary package.

§enhances: Option<Dependency>

Package makes another package better.

§pre_depends: Option<Dependency>

Packages which must be installed before this binary begins to unpack.

Trait Implementations§

Source§

impl Clone for BinaryControl

Source§

fn clone(&self) -> BinaryControl

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for BinaryControl

Source§

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

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

impl<'de> Deserialize<'de> for BinaryControl

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl PartialEq for BinaryControl

Source§

fn eq(&self, other: &BinaryControl) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Serialize for BinaryControl

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for BinaryControl

Auto Trait Implementations§

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DynClone for T
where T: Clone,

Source§

fn __clone_box(&self, _: Private) -> *mut ()

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> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. 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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

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

Source§

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