pub struct CrateDep {
pub name: String,
pub req: Option<String>,
pub version_exact: Option<String>,
pub kind: String,
pub declared_in: String,
}Expand description
One direct dependency harvested from a manifest.
Fields§
§name: Stringcrates.io / docs.rs package name.
req: Option<String>Version requirement from Cargo.toml (if any).
version_exact: Option<String>Exact version from Cargo.lock (if any).
kind: Stringnormal | dev | build | workspace.
declared_in: StringRelative path of the Cargo.toml that declared it.
Trait Implementations§
impl Eq for CrateDep
impl StructuralPartialEq for CrateDep
Auto Trait Implementations§
impl Freeze for CrateDep
impl RefUnwindSafe for CrateDep
impl Send for CrateDep
impl Sync for CrateDep
impl Unpin for CrateDep
impl UnsafeUnpin for CrateDep
impl UnwindSafe for CrateDep
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.