pub struct VersionVariables {Show 28 fields
pub major: u32,
pub minor: u32,
pub patch: u32,
pub pre_release_tag: String,
pub pre_release_tag_with_dash: String,
pub pre_release_label: String,
pub pre_release_label_with_dash: String,
pub pre_release_number: Option<i64>,
pub weighted_pre_release_number: Option<i64>,
pub build_meta_data: Option<i64>,
pub full_build_meta_data: String,
pub major_minor_patch: String,
pub sem_ver: String,
pub full_sem_ver: String,
pub assembly_sem_ver: String,
pub assembly_sem_file_ver: String,
pub informational_version: String,
pub branch_name: String,
pub escaped_branch_name: String,
pub sha: String,
pub short_sha: String,
pub version_source_distance: Option<i64>,
pub version_source_increment: String,
pub version_source_sem_ver: String,
pub version_source_sha: String,
pub commits_since_version_source: Option<i64>,
pub commit_date: String,
pub uncommitted_changes: i64,
}Expand description
All output variables computed by GitVersion.
JSON output uses the same key names as the original (PascalCase).
Fields§
§major: u32§minor: u32§patch: u32§pre_release_tag: String§pre_release_tag_with_dash: String§pre_release_label: String§pre_release_label_with_dash: String§pre_release_number: Option<i64>§weighted_pre_release_number: Option<i64>§build_meta_data: Option<i64>§full_build_meta_data: String§major_minor_patch: String§sem_ver: String§full_sem_ver: String§assembly_sem_ver: String§assembly_sem_file_ver: String§informational_version: String§branch_name: String§escaped_branch_name: String§sha: String§short_sha: String§version_source_distance: Option<i64>§version_source_increment: String§version_source_sem_ver: String§version_source_sha: String§commits_since_version_source: Option<i64>Deprecated: prefer VersionSourceDistance. Retained for compatibility.
commit_date: String§uncommitted_changes: i64Implementations§
Trait Implementations§
Source§impl Clone for VersionVariables
impl Clone for VersionVariables
Source§fn clone(&self) -> VersionVariables
fn clone(&self) -> VersionVariables
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 VersionVariables
impl Debug for VersionVariables
Source§impl Default for VersionVariables
impl Default for VersionVariables
Source§fn default() -> VersionVariables
fn default() -> VersionVariables
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for VersionVariableswhere
VersionVariables: Default,
impl<'de> Deserialize<'de> for VersionVariableswhere
VersionVariables: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for VersionVariables
impl RefUnwindSafe for VersionVariables
impl Send for VersionVariables
impl Sync for VersionVariables
impl Unpin for VersionVariables
impl UnsafeUnpin for VersionVariables
impl UnwindSafe for VersionVariables
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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