Enum guppy::graph::GitReq [−][src]
Expand description
A Cargo.toml specification for a Git branch, tag, or revision.
For more, including examples, see the documentation for ExternalSource::Git.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Branch(&'g str)
Tuple Fields
0: &'g strA branch, e.g. "main".
This is specified in Cargo.toml as:
[dependencies]
cargo = { git = "...", branch = "main" }Tag(&'g str)
Tuple Fields
0: &'g strA tag, e.g. "guppy-0.5.0".
This is specified in Cargo.toml as:
[dependencies]
guppy = { git = "...", tag = "guppy-0.5.0" }Rev(&'g str)
Tuple Fields
0: &'g strA revision (commit hash), e.g. "0227f048fcb7c798026ede6cc20c92befc84c3a4".
This is specified in Cargo.toml as:
[dependencies]
cargo = { git = "...", rev = "0227f048fcb7c798026ede6cc20c92befc84c3a4" }Default
Not specified in Cargo.toml. Cargo treats this as the main branch by default.
[dependencies]
cargo = { git = "..." }Trait Implementations
Auto Trait Implementations
impl<'g> RefUnwindSafe for GitReq<'g>
impl<'g> UnwindSafe for GitReq<'g>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.