pub struct JobInstanceKey { /* private fields */ }Expand description
The canonical identity key for a logical job instance.
Parameter entries are ordered by validated name, retain their value type,
and include only parameters marked ParameterRole::Identifying.
Implementations§
Source§impl JobInstanceKey
impl JobInstanceKey
Sourcepub fn new(job_name: JobName, parameters: &JobParameters) -> JobInstanceKey
pub fn new(job_name: JobName, parameters: &JobParameters) -> JobInstanceKey
Constructs the canonical key for a named job and parameter set.
Sourcepub fn identifying_parameter_count(&self) -> usize
pub fn identifying_parameter_count(&self) -> usize
Returns the number of identifying parameters.
Sourcepub fn identifying_value(&self, name: &ParameterName) -> Option<&ParameterValue>
pub fn identifying_value(&self, name: &ParameterName) -> Option<&ParameterValue>
Returns an identifying value for authorized application or persistence use.
Sourcepub fn identifying_fields(&self) -> impl ExactSizeIterator
pub fn identifying_fields(&self) -> impl ExactSizeIterator
Iterates over identifying parameter names and value kinds in canonical order without exposing their values.
Sourcepub fn digest(&self) -> [u8; 32]
pub fn digest(&self) -> [u8; 32]
Returns the canonical 32-byte digest of this identifying key.
The encoding is version tagged, length prefixed, and type tagged, so two keys collide only when their job name and identifying parameters are equal. Durable adapters, operator request digests, and redacted projections share it, and no parameter value is recoverable from the result. The version-1 byte layout is durable data and never changes.
Trait Implementations§
Source§impl Clone for JobInstanceKey
impl Clone for JobInstanceKey
Source§fn clone(&self) -> JobInstanceKey
fn clone(&self) -> JobInstanceKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for JobInstanceKey
impl Debug for JobInstanceKey
impl Eq for JobInstanceKey
Source§impl Hash for JobInstanceKey
impl Hash for JobInstanceKey
Source§impl Ord for JobInstanceKey
impl Ord for JobInstanceKey
Source§fn cmp(&self, other: &JobInstanceKey) -> Ordering
fn cmp(&self, other: &JobInstanceKey) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for JobInstanceKey
impl PartialEq for JobInstanceKey
Source§impl PartialOrd for JobInstanceKey
impl PartialOrd for JobInstanceKey
impl StructuralPartialEq for JobInstanceKey
Auto Trait Implementations§
impl Freeze for JobInstanceKey
impl RefUnwindSafe for JobInstanceKey
impl Send for JobInstanceKey
impl Sync for JobInstanceKey
impl Unpin for JobInstanceKey
impl UnsafeUnpin for JobInstanceKey
impl UnwindSafe for JobInstanceKey
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> Comparable<K> for Q
impl<Q, K> Comparable<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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more