pub struct DependencyDetail {
pub version: Option<String>,
pub path: Option<String>,
pub git: Option<String>,
pub rev: Option<String>,
pub branch: Option<String>,
pub tag: Option<String>,
}Expand description
Detailed dependency specification.
Allows specifying dependencies from multiple sources: version requirements, local paths, or git repositories.
Fields§
§version: Option<String>Version requirement (e.g., "^1.0", ">=2.0.0").
path: Option<String>Local filesystem path to the dependency.
git: Option<String>Git repository URL.
rev: Option<String>Exact commit for a git dependency — a full 40-character hex SHA-1. A
git dependency MUST pin an exact commit: a floating branch/tag alone
is an irreproducible (false) build and is rejected during resolution.
branch: Option<String>A git branch. Recorded for diagnostics/vendoring, but NEVER sufficient on
its own — an exact rev is still required.
tag: Option<String>A git tag. Like branch, informational only — an exact rev is required.
Trait Implementations§
Source§impl Clone for DependencyDetail
impl Clone for DependencyDetail
Source§fn clone(&self) -> DependencyDetail
fn clone(&self) -> DependencyDetail
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 DependencyDetail
impl Debug for DependencyDetail
Source§impl<'de> Deserialize<'de> for DependencyDetail
impl<'de> Deserialize<'de> for DependencyDetail
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 DependencyDetail
impl RefUnwindSafe for DependencyDetail
impl Send for DependencyDetail
impl Sync for DependencyDetail
impl Unpin for DependencyDetail
impl UnsafeUnpin for DependencyDetail
impl UnwindSafe for DependencyDetail
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> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.