pub enum BuildId {
Explicit(String),
BinaryFallback(String),
}Expand description
A build entry’s static id, tagged with whether the caller must render it before comparing against a configured id list.
Mirrors stage-build::run_helpers::artifact_meta’s exact precedence: an
explicit build.id is stamped onto the Binary artifact’s id metadata
byte-for-byte (run.rs clones it raw, never through
crate::context::Context::render_template); only the binary-fallback
id (build.binary, or the crate name when binary is unset too) is ever
rendered, once per target, before it becomes the artifact’s id. A
caller that renders an Explicit id anyway would match configured id
lists production itself never matches — this module has no Context to
render through, so the two cases are kept distinguishable rather than
collapsed into one already-resolved string.
Variants§
Explicit(String)
build.id was set; compare this string verbatim, never rendered.
BinaryFallback(String)
build.id was unset; this is the unrendered binary-fallback source
(build.binary or the crate name). Callers with a live Context
must render it the same way stage-build::run.rs renders
binary_name before comparing or displaying it.
Implementations§
Trait Implementations§
impl Eq for BuildId
impl StructuralPartialEq for BuildId
Auto Trait Implementations§
impl Freeze for BuildId
impl RefUnwindSafe for BuildId
impl Send for BuildId
impl Sync for BuildId
impl Unpin for BuildId
impl UnsafeUnpin for BuildId
impl UnwindSafe for BuildId
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.