assorted_debian_utils::excuses

Struct ExcusesItem

Source
pub struct ExcusesItem {
    pub maintainer: Option<String>,
    pub is_candidate: bool,
    pub new_version: Option<PackageVersion>,
    pub old_version: Option<PackageVersion>,
    pub item_name: String,
    pub source: String,
    pub invalidated_by_other_package: Option<bool>,
    pub component: Option<Component>,
    pub missing_builds: Option<MissingBuilds>,
    pub policy_info: Option<PolicyInfo>,
    pub excuses: Vec<String>,
    pub migration_policy_verdict: Verdict,
}
Expand description

A source package’s excuses

Fields§

§maintainer: Option<String>

Maintainer of the package

§is_candidate: bool

The item is a candidate for migration

§new_version: Option<PackageVersion>

Version in the source suite, i.e., the version to migrate

If the value is None, the package is being removed.

§old_version: Option<PackageVersion>

Version in the target suite

If the value is None, the package is not yet available in the target suite.

§item_name: String

Migration item name

§source: String

Source package name

§invalidated_by_other_package: Option<bool>

Migration is blocked by another package

§component: Option<Component>

Component of the source package

§missing_builds: Option<MissingBuilds>

Missing builds

§policy_info: Option<PolicyInfo>

Policy info

§excuses: Vec<String>

The excuses

§migration_policy_verdict: Verdict

Combined verdict

Implementations§

Source§

impl ExcusesItem

Source

pub fn is_removal(&self) -> bool

Excuses item refers to package removal

Source

pub fn is_binnmu(&self) -> bool

Excuses item refers to a binNMU

Source

pub fn binnmu_arch(&self) -> Option<Architecture>

Get architecture of the binNMU or None

Source

pub fn is_from_pu(&self) -> bool

Excuses item refers to an item in (stable) proposed-updates

Source

pub fn is_from_tpu(&self) -> bool

Excuses item refers to an item in testing-proposed-updates

Trait Implementations§

Source§

impl Debug for ExcusesItem

Source§

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

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

impl<'de> Deserialize<'de> for ExcusesItem

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 ExcusesItem

Source§

fn eq(&self, other: &ExcusesItem) -> 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 Eq for ExcusesItem

Source§

impl StructuralPartialEq for ExcusesItem

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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
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.
Source§

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