pub struct BuildMetaData {
pub commits_since_tag: Option<i64>,
pub branch: Option<String>,
pub sha: Option<String>,
pub short_sha: Option<String>,
pub commit_date: Option<DateTime<FixedOffset>>,
pub other_metadata: Option<String>,
pub version_source_sha: Option<String>,
pub version_source_distance: i64,
pub uncommitted_changes: i64,
pub version_source_increment: VersionField,
}Expand description
Build metadata: commits-since-tag, branch, sha, etc.
Fields§
§commits_since_tag: Option<i64>§branch: Option<String>§sha: Option<String>§short_sha: Option<String>§commit_date: Option<DateTime<FixedOffset>>§other_metadata: Option<String>§version_source_sha: Option<String>§version_source_distance: i64§uncommitted_changes: i64§version_source_increment: VersionFieldImplementations§
Source§impl BuildMetaData
impl BuildMetaData
Sourcepub fn format_short(&self) -> String
pub fn format_short(&self) -> String
Short format b: commits-since-tag only.
Sourcepub fn format_full(&self) -> String
pub fn format_full(&self) -> String
Full format f: commits.Branch.
Trait Implementations§
Source§impl Clone for BuildMetaData
impl Clone for BuildMetaData
Source§fn clone(&self) -> BuildMetaData
fn clone(&self) -> BuildMetaData
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BuildMetaData
impl Debug for BuildMetaData
Source§impl Default for BuildMetaData
impl Default for BuildMetaData
Source§fn default() -> BuildMetaData
fn default() -> BuildMetaData
Returns the “default value” for a type. Read more
impl Eq for BuildMetaData
Source§impl PartialEq for BuildMetaData
impl PartialEq for BuildMetaData
Source§fn eq(&self, other: &BuildMetaData) -> bool
fn eq(&self, other: &BuildMetaData) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BuildMetaData
Auto Trait Implementations§
impl Freeze for BuildMetaData
impl RefUnwindSafe for BuildMetaData
impl Send for BuildMetaData
impl Sync for BuildMetaData
impl Unpin for BuildMetaData
impl UnsafeUnpin for BuildMetaData
impl UnwindSafe for BuildMetaData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more