pub struct Provenance {
pub commit: Option<String>,
pub commit_long: Option<String>,
pub commit_date: Option<String>,
pub dirty: Option<bool>,
pub build_timestamp: Option<String>,
}Expand description
Git provenance of the running binary, surfaced on the daemon status/ping
wire and in omni-dev --version.
Every field is optional and additive: each is omitted from the wire when absent, so a daemon built without git metadata stays byte-identical to a pre-#1374 one and older clients ignore the extra keys.
Fields§
§commit: Option<String>Abbreviated commit SHA (e.g. a6d304fd).
commit_long: Option<String>Full 40-character commit SHA.
commit_date: Option<String>Committer date of the built commit, strict ISO-8601.
dirty: Option<bool>Whether the working tree was dirty at build time.
build_timestamp: Option<String>Build timestamp, RFC3339 (UTC).
Trait Implementations§
Source§impl Clone for Provenance
impl Clone for Provenance
Source§fn clone(&self) -> Provenance
fn clone(&self) -> Provenance
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 Provenance
impl Debug for Provenance
Source§impl Default for Provenance
impl Default for Provenance
Source§fn default() -> Provenance
fn default() -> Provenance
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for Provenance
impl<'de> Deserialize<'de> for Provenance
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 Provenance
impl RefUnwindSafe for Provenance
impl Send for Provenance
impl Sync for Provenance
impl Unpin for Provenance
impl UnsafeUnpin for Provenance
impl UnwindSafe for Provenance
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