pub struct PackageDependencyFields {Show 16 fields
pub depends: Option<DependencyList>,
pub recommends: Option<DependencyList>,
pub suggests: Option<DependencyList>,
pub enhances: Option<DependencyList>,
pub pre_depends: Option<DependencyList>,
pub breaks: Option<DependencyList>,
pub conflicts: Option<DependencyList>,
pub provides: Option<DependencyList>,
pub replaces: Option<DependencyList>,
pub build_depends: Option<DependencyList>,
pub build_depends_indep: Option<DependencyList>,
pub build_depends_arch: Option<DependencyList>,
pub build_conflicts: Option<DependencyList>,
pub build_conflicts_indep: Option<DependencyList>,
pub build_conflicts_arch: Option<DependencyList>,
pub built_using: Option<DependencyList>,
}Expand description
Holds all fields related to package dependency metadata.
Instances of this type effectively describe the relationships between the package it describes and other packages.
See https://www.debian.org/doc/debian-policy/ch-relationships.html for a list of all the fields and what they mean.
Fields
depends: Option<DependencyList>Depends.
recommends: Option<DependencyList>Recommends.
suggests: Option<DependencyList>Suggests.
enhances: Option<DependencyList>Enhances.
pre_depends: Option<DependencyList>Pre-Depends.
breaks: Option<DependencyList>Breaks.
conflicts: Option<DependencyList>Conflicts.
provides: Option<DependencyList>Provides.
replaces: Option<DependencyList>Replaces.
build_depends: Option<DependencyList>Build-Depends.
build_depends_indep: Option<DependencyList>Build-Depends-Indep.
build_depends_arch: Option<DependencyList>Build-Depends-Arch.
build_conflicts: Option<DependencyList>Build-Conflicts.
build_conflicts_indep: Option<DependencyList>Build-Conflicts-Indep.
build_conflicts_arch: Option<DependencyList>Build-Conflicts-Arch.
built_using: Option<DependencyList>Built-Using.
Implementations
sourceimpl PackageDependencyFields
impl PackageDependencyFields
sourcepub fn from_paragraph(para: &ControlParagraph<'_>) -> Result<Self>
pub fn from_paragraph(para: &ControlParagraph<'_>) -> Result<Self>
Construct an instance from a control paragraph.
sourcepub fn binary_dependency(
&self,
field: BinaryDependency
) -> Option<&DependencyList>
pub fn binary_dependency(
&self,
field: BinaryDependency
) -> Option<&DependencyList>
Resolve the value of a given BinaryDependency field.
Trait Implementations
sourceimpl Clone for PackageDependencyFields
impl Clone for PackageDependencyFields
sourcefn clone(&self) -> PackageDependencyFields
fn clone(&self) -> PackageDependencyFields
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
Auto Trait Implementations
impl RefUnwindSafe for PackageDependencyFields
impl Send for PackageDependencyFields
impl Sync for PackageDependencyFields
impl Unpin for PackageDependencyFields
impl UnwindSafe for PackageDependencyFields
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
fn vzip(self) -> V
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more