pub struct JobParameters { /* private fields */ }Expand description
A deterministically ordered set of typed job parameters.
Implementations§
Source§impl JobParameters
impl JobParameters
Sourcepub const fn new() -> JobParameters
pub const fn new() -> JobParameters
Constructs an empty parameter set.
Sourcepub fn insert(
&mut self,
name: ParameterName,
parameter: JobParameter,
) -> Result<(), DomainError>
pub fn insert( &mut self, name: ParameterName, parameter: JobParameter, ) -> Result<(), DomainError>
Inserts a parameter without silently replacing an existing name.
§Errors
Returns DomainError::DuplicateParameter when the name is already
present.
Sourcepub fn try_from_iter(
parameters: impl IntoIterator<Item = (ParameterName, JobParameter)>,
) -> Result<JobParameters, DomainError>
pub fn try_from_iter( parameters: impl IntoIterator<Item = (ParameterName, JobParameter)>, ) -> Result<JobParameters, DomainError>
Builds a parameter set while rejecting duplicate names.
§Errors
Returns DomainError::DuplicateParameter when an input name occurs
more than once.
Sourcepub fn get(&self, name: &ParameterName) -> Option<&JobParameter>
pub fn get(&self, name: &ParameterName) -> Option<&JobParameter>
Returns a parameter by its validated name.
Sourcepub fn iter(&self) -> impl ExactSizeIterator
pub fn iter(&self) -> impl ExactSizeIterator
Iterates in canonical name order.
Sourcepub fn identifying_len(&self) -> usize
pub fn identifying_len(&self) -> usize
Returns the number of parameters that participate in identity.
Sourcepub fn flow_input_digest(&self) -> [u8; 32]
pub fn flow_input_digest(&self) -> [u8; 32]
Hashes the complete typed parameter projection for durable flow input.
The raw canonical bytes never leave this sensitivity-owning type. Flow records retain only the domain-separated SHA-256 result, so parameters are neither copied into repository rows nor exposed through diagnostics.
Trait Implementations§
Source§impl Clone for JobParameters
impl Clone for JobParameters
Source§fn clone(&self) -> JobParameters
fn clone(&self) -> JobParameters
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 JobParameters
impl Debug for JobParameters
Source§impl Default for JobParameters
impl Default for JobParameters
Source§fn default() -> JobParameters
fn default() -> JobParameters
impl Eq for JobParameters
Source§impl PartialEq for JobParameters
impl PartialEq for JobParameters
impl StructuralPartialEq for JobParameters
Auto Trait Implementations§
impl Freeze for JobParameters
impl RefUnwindSafe for JobParameters
impl Send for JobParameters
impl Sync for JobParameters
impl Unpin for JobParameters
impl UnsafeUnpin for JobParameters
impl UnwindSafe for JobParameters
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§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