pub struct DependencyDelta {
pub name: String,
pub is_installed: bool,
pub installed_version: Option<String>,
pub version_satisfied: bool,
}Expand description
What: Status of one declared dependency relative to the host environment.
Inputs:
- Produced by
sandbox::analyze_dependencies()and the analysis entry points.
Output:
- Installation and version-constraint status for a single dependency spec.
Details:
namekeeps the full spec as declared (e.g.,foo>=1.2orbar: enables feature Xfor optdepends) so callers can display it verbatim.version_satisfiedisfalsewhen the package is not installed; when installed without a declared constraint it istrue.
Fields§
§name: StringDependency spec as declared (may include version requirement or description).
is_installed: boolWhether this dependency is installed (or provided) on the host.
installed_version: Option<String>Installed version when available (from pacman -Q).
version_satisfied: boolWhether the installed version satisfies the declared constraint.
Trait Implementations§
Source§impl Clone for DependencyDelta
impl Clone for DependencyDelta
Source§fn clone(&self) -> DependencyDelta
fn clone(&self) -> DependencyDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyDelta
impl Debug for DependencyDelta
Source§impl<'de> Deserialize<'de> for DependencyDelta
impl<'de> Deserialize<'de> for DependencyDelta
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for DependencyDelta
Source§impl PartialEq for DependencyDelta
impl PartialEq for DependencyDelta
Source§impl Serialize for DependencyDelta
impl Serialize for DependencyDelta
impl StructuralPartialEq for DependencyDelta
Auto Trait Implementations§
impl Freeze for DependencyDelta
impl RefUnwindSafe for DependencyDelta
impl Send for DependencyDelta
impl Sync for DependencyDelta
impl Unpin for DependencyDelta
impl UnsafeUnpin for DependencyDelta
impl UnwindSafe for DependencyDelta
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.