pub enum PackageDependency {
Path(PathBuf),
Index {
package: String,
version: String,
},
Git {
url: String,
branch: Option<String>,
tag: Option<String>,
rev: Option<String>,
},
}Expand description
Represents a dependency in a Nickel package
Variants§
Path(PathBuf)
A path dependency to a local package
Index
A dependency from the package index
Git
A git dependency
Implementations§
Source§impl PackageDependency
impl PackageDependency
Sourcepub fn to_nickel_string(&self) -> String
pub fn to_nickel_string(&self) -> String
Convert the dependency to its Nickel representation
Trait Implementations§
Source§impl Clone for PackageDependency
impl Clone for PackageDependency
Source§fn clone(&self) -> PackageDependency
fn clone(&self) -> PackageDependency
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 moreAuto Trait Implementations§
impl Freeze for PackageDependency
impl RefUnwindSafe for PackageDependency
impl Send for PackageDependency
impl Sync for PackageDependency
impl Unpin for PackageDependency
impl UnwindSafe for PackageDependency
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