pub struct BuildMetadata {
pub profile: Profile,
pub git_branch: String,
pub git_commit: String,
pub is_dirty: bool,
pub reproducible: bool,
}Expand description
Build metadata captured while creating dist artifacts.
Fields§
§profile: ProfileCargo build profile used to produce artifacts.
git_branch: StringGit branch name at build time, or N/A if unavailable.
git_commit: StringGit commit hash at build time, or N/A if unavailable.
is_dirty: boolIndicates unstaged changes at build time.
reproducible: boolIndicates this build was produced inside a pinned Docker container for reproducibility.
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<'de> Deserialize<'de> for BuildMetadata
impl<'de> Deserialize<'de> for BuildMetadata
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuildMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<BuildMetadata, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for BuildMetadata
impl PartialEq for BuildMetadata
Source§impl Serialize for BuildMetadata
impl Serialize for BuildMetadata
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for BuildMetadata
impl StructuralPartialEq for BuildMetadata
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<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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.