pub struct BuildMetadata {
pub invocation_id: Option<String>,
pub started_on: Option<String>,
pub finished_on: Option<String>,
}Expand description
Build execution metadata
Fields§
§invocation_id: Option<String>Unique identifier for this build invocation
started_on: Option<String>Timestamp when the build started
finished_on: Option<String>Timestamp when the build finished
Implementations§
Source§impl BuildMetadata
impl BuildMetadata
Sourcepub fn with_invocation_id(self, id: impl Into<String>) -> Self
pub fn with_invocation_id(self, id: impl Into<String>) -> Self
Set invocation ID
Sourcepub fn with_started_on(self, ts: impl Into<String>) -> Self
pub fn with_started_on(self, ts: impl Into<String>) -> Self
Set start timestamp
Sourcepub fn with_finished_on(self, ts: impl Into<String>) -> Self
pub fn with_finished_on(self, ts: impl Into<String>) -> Self
Set finish timestamp
Trait Implementations§
Source§impl Clone for BuildMetadata
impl Clone for BuildMetadata
Source§fn clone(&self) -> BuildMetadata
fn clone(&self) -> BuildMetadata
Returns a duplicate of the value. Read more
1.0.0 · 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 BuildMetadata
impl Debug for BuildMetadata
Source§impl Default for BuildMetadata
impl Default for BuildMetadata
Source§impl<'de> Deserialize<'de> for BuildMetadata
impl<'de> Deserialize<'de> for BuildMetadata
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 BuildMetadata
impl RefUnwindSafe for BuildMetadata
impl Send for BuildMetadata
impl Sync for BuildMetadata
impl Unpin for BuildMetadata
impl UnwindSafe for BuildMetadata
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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