struct ProgramMetadata<'a> {
name: &'a str,
version: &'a str,
target: &'a str,
is_debug: bool,
rustc_version: &'a str,
build_time_utc: &'a str,
git_commit_hash: String,
}
Fields§
§name: &'a str
The program name
version: &'a str
The program version as specified in Cargo.toml
target: &'a str
The target architecture for the build (e.g. x86_64-unknown-linux-gnu)
is_debug: bool
Whether it is a debug build
rustc_version: &'a str
The version of rustc used to compile MUSE
build_time_utc: &'a str
When MUSE was built
git_commit_hash: String
The git commit hash for the version of MUSE (if known)
Trait Implementations§
Source§impl Default for ProgramMetadata<'_>
impl Default for ProgramMetadata<'_>
Auto Trait Implementations§
impl<'a> Freeze for ProgramMetadata<'a>
impl<'a> RefUnwindSafe for ProgramMetadata<'a>
impl<'a> Send for ProgramMetadata<'a>
impl<'a> Sync for ProgramMetadata<'a>
impl<'a> Unpin for ProgramMetadata<'a>
impl<'a> UnwindSafe for ProgramMetadata<'a>
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> 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