nestrs-cli-rs 0.1.0

Rust port of the Nest CLI for the nestrs organization.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Upstream source: `../nest-cli/lib/package-managers/project.dependency.ts`.

#[derive(Clone, Debug, Eq, PartialEq)]
pub struct ProjectDependency {
    pub name: String,
    pub version: String,
}

impl ProjectDependency {
    pub fn new(name: impl Into<String>, version: impl Into<String>) -> Self {
        Self {
            name: name.into(),
            version: version.into(),
        }
    }
}