pub struct JobParameters { /* private fields */ }Expand description
A deterministically ordered set of typed job parameters.
Implementations§
Source§impl JobParameters
impl JobParameters
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<Self, DomainError>
pub fn try_from_iter( parameters: impl IntoIterator<Item = (ParameterName, JobParameter)>, ) -> Result<Self, 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<Item = (&ParameterName, &JobParameter)>
pub fn iter( &self, ) -> impl ExactSizeIterator<Item = (&ParameterName, &JobParameter)>
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 more