pub struct Dependency {
pub name: String,
pub version_req: String,
pub status: DependencyStatus,
pub source: DependencySource,
pub required_by: Vec<String>,
pub depends_on: Vec<String>,
pub is_core: bool,
pub is_system: bool,
}Expand description
Information about a single dependency.
Contains all metadata about a dependency including its status, source, and relationships to other packages.
Fields§
§name: StringPackage name.
version_req: StringRequired version constraint (e.g., “>=1.2.3” or empty if no constraint).
status: DependencyStatusCurrent status of this dependency.
source: DependencySourceSource repository or origin.
required_by: Vec<String>Packages that require this dependency.
depends_on: Vec<String>Packages that this dependency depends on (transitive dependencies).
is_core: boolWhether this is a core repository package.
is_system: boolWhether this is a critical system package.
Trait Implementations§
Source§impl Clone for Dependency
impl Clone for Dependency
Source§fn clone(&self) -> Dependency
fn clone(&self) -> Dependency
Returns a duplicate of the value. Read more
1.0.0 · 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 Dependency
impl Debug for Dependency
Source§impl<'de> Deserialize<'de> for Dependency
impl<'de> Deserialize<'de> for Dependency
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
Auto Trait Implementations§
impl Freeze for Dependency
impl RefUnwindSafe for Dependency
impl Send for Dependency
impl Sync for Dependency
impl Unpin for Dependency
impl UnwindSafe for Dependency
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