Enum crate2nix::config::Source [−][src]
pub enum Source { CratesIo { name: String, version: Version, sha256: String, }, Git { url: Url, rev: String, sha256: String, }, Nix { file: NixFile, attr: Option<String>, }, }
Expand description
An out of tree source.
Variants
Get the source from crates.io.
Show fields
Get the source from git.
Show fields
Get the source from a nix expression.
Show fields
Implementations
Returns a CLI string to reproduce this source.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more