pub struct CacheKey {
pub env_digest: String,
pub input_digests: Vec<String>,
pub definition_digest: String,
pub repo: String,
pub state: StateRef,
pub basis: Basis,
pub command: Vec<String>,
pub class: CheckClass,
}Expand description
Addresses a cached check result.
The key contains no machine-local state (paths, host identity, cache-slot
directories). Changing any component yields a different CacheKey::id.
Identity fields bind a hit to one check; output digest alone is not enough.
Fields§
§env_digest: StringDigest of the content-addressed execution environment E.
input_digests: Vec<String>Sorted, tagged content-addresses of the evaluated inputs.
definition_digest: StringDigest of the authored definition (ci.toml typed-blob hash).
repo: StringRepository the verdict was produced for.
state: StateRefSource state the verdict was produced for.
basis: BasisEvaluated basis the verdict was produced for.
command: Vec<String>Exact argv executed by the check.
class: CheckClassGating class of the check.
Implementations§
Trait Implementations§
impl Eq for CacheKey
impl StructuralPartialEq for CacheKey
Auto Trait Implementations§
impl Freeze for CacheKey
impl RefUnwindSafe for CacheKey
impl Send for CacheKey
impl Sync for CacheKey
impl Unpin for CacheKey
impl UnsafeUnpin for CacheKey
impl UnwindSafe for CacheKey
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