Enum vergen::VergenKey [−][src]
pub enum VergenKey { BuildTimestamp, BuildDate, Sha, ShortSha, CommitDate, TargetTriple, Semver, SemverLightweight, }
vergen
build information keys.
Variants
BuildTimestamp
The build timestamp. (VERGEN_BUILD_TIMESTAMP)
BuildDate
The build date. (VERGEN_BUILD_DATE)
Sha
The latest commit SHA. (VERGEN_SHA)
ShortSha
The latest commit short SHA. (VERGEN_SHA_SHORT)
CommitDate
The commit date. (VERGEN_COMMIT_DATE).
TargetTriple
The target triple. (VERGEN_TARGET_TRIPLE)
Semver
The semver version from the last git tag. (VERGEN_SEMVER)
SemverLightweight
The semver version from the last git tag, including lightweight. (VERGEN_SEMVER_LIGHTWEIGHT)
Methods
impl VergenKey
[src]
impl VergenKey
pub fn comment(self) -> &'static str
[src]
pub fn comment(self) -> &'static str
Get the comment string for the given key.
pub fn name(self) -> &'static str
[src]
pub fn name(self) -> &'static str
Get the name for the given key.
Trait Implementations
impl Clone for VergenKey
[src]
impl Clone for VergenKey
fn clone(&self) -> VergenKey
[src]
fn clone(&self) -> VergenKey
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Copy for VergenKey
[src]
impl Copy for VergenKey
impl Debug for VergenKey
[src]
impl Debug for VergenKey
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Hash for VergenKey
[src]
impl Hash for VergenKey
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Eq for VergenKey
[src]
impl Eq for VergenKey
impl PartialEq for VergenKey
[src]
impl PartialEq for VergenKey