pub struct DeclaredDep {
pub name: String,
pub version_req: Option<String>,
pub kind: DepKind,
}Expand description
A declared dependency extracted from a manifest.
Fields§
§name: String§version_req: Option<String>Version requirement string (e.g., "^1.0", ">=2", "v0.9.1").
kind: DepKindTrait Implementations§
Source§impl Clone for DeclaredDep
impl Clone for DeclaredDep
Source§fn clone(&self) -> DeclaredDep
fn clone(&self) -> DeclaredDep
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 DeclaredDep
impl Debug for DeclaredDep
Auto Trait Implementations§
impl Freeze for DeclaredDep
impl RefUnwindSafe for DeclaredDep
impl Send for DeclaredDep
impl Sync for DeclaredDep
impl Unpin for DeclaredDep
impl UnsafeUnpin for DeclaredDep
impl UnwindSafe for DeclaredDep
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