pub struct DependencyConfig {
pub name: String,
pub group_id: String,
pub artifact_id: String,
pub version: String,
pub registry: String,
pub output_path: String,
}Expand description
Dependency configuration for artifacts to fetch from registries
Dependencies support semantic version ranges and are resolved to exact versions in the lock file for reproducible builds.
Fields§
§name: StringLocal name/alias for this dependency
group_id: StringGroup ID of the artifact in the registry
artifact_id: StringArtifact ID in the registry
version: StringVersion specification (supports semver ranges like ^1.0.0, ~2.1.0)
registry: StringName of the registry to fetch from (must match a registry name)
output_path: StringLocal path where the artifact should be saved
Trait Implementations§
Source§impl Clone for DependencyConfig
impl Clone for DependencyConfig
Source§fn clone(&self) -> DependencyConfig
fn clone(&self) -> DependencyConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DependencyConfig
impl Debug for DependencyConfig
Source§impl<'de> Deserialize<'de> for DependencyConfig
impl<'de> Deserialize<'de> for DependencyConfig
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 DependencyConfig
impl RefUnwindSafe for DependencyConfig
impl Send for DependencyConfig
impl Sync for DependencyConfig
impl Unpin for DependencyConfig
impl UnwindSafe for DependencyConfig
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