pub struct Version {
pub branch: String,
pub commit: String,
pub version: Option<String>,
pub dirty: bool,
pub commit_message: String,
pub commit_date: String,
pub tag: String,
pub commits: String,
pub build_aquamarine: String,
pub flags: Vec<String>,
}Expand description
This struct holds version information
Fields§
§branch: StringThe git branch Hyprland was built on
commit: StringThe git commit Hyprland was built on
version: Option<String>The Hyprland version
dirty: boolThis is true if there were unstaged changed when Hyprland was built
commit_message: StringThe git commit message
commit_date: StringThe git commit date
tag: StringThe git tag hyprland was built on
commits: StringThe amount of commits to Hyprland at buildtime
build_aquamarine: StringAquamarine version
flags: Vec<String>The flags that Hyprland was built with
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Version
impl<'de> Deserialize<'de> for Version
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
impl Eq for Version
Source§impl HyprData for Version
impl HyprData for Version
Source§fn instance_get(instance: &Instance) -> Result<Self>
fn instance_get(instance: &Instance) -> Result<Self>
This method gets the data
Source§async fn instance_get_async(instance: &Instance) -> Result<Self>
async fn instance_get_async(instance: &Instance) -> Result<Self>
This method gets the data (async)
impl StructuralPartialEq for Version
Auto Trait Implementations§
impl Freeze for Version
impl RefUnwindSafe for Version
impl Send for Version
impl Sync for Version
impl Unpin for Version
impl UnsafeUnpin for Version
impl UnwindSafe for Version
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> 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