GitVersion

Struct GitVersion 

Source
pub struct GitVersion {
Show 25 fields pub assembly_sem_file_ver: String, pub assembly_sem_ver: String, pub branch_name: String, pub build_meta_data: Option<Value>, pub commit_date: String, pub commits_since_version_source: i64, pub escaped_branch_name: String, pub full_build_meta_data: String, pub full_sem_ver: String, pub informational_version: String, pub major: i64, pub major_minor_patch: String, pub minor: i64, pub patch: i64, pub pre_release_label: String, pub pre_release_label_with_dash: String, pub pre_release_number: Option<i64>, pub pre_release_tag: String, pub pre_release_tag_with_dash: String, pub sem_ver: String, pub sha: String, pub short_sha: String, pub uncommitted_changes: i64, pub version_source_sha: String, pub weighted_pre_release_number: i64,
}

Fields§

§assembly_sem_file_ver: String§assembly_sem_ver: String§branch_name: String§build_meta_data: Option<Value>§commit_date: String§commits_since_version_source: i64§escaped_branch_name: String§full_build_meta_data: String§full_sem_ver: String§informational_version: String§major: i64§major_minor_patch: String§minor: i64§patch: i64§pre_release_label: String§pre_release_label_with_dash: String§pre_release_number: Option<i64>§pre_release_tag: String§pre_release_tag_with_dash: String§sem_ver: String§sha: String§short_sha: String§uncommitted_changes: i64§version_source_sha: String§weighted_pre_release_number: i64

Trait Implementations§

Source§

impl Debug for GitVersion

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GitVersion

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for GitVersion

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,