pub struct ProcessingStepDescriptor { /* private fields */ }Expand description
Value object describing a complete processing step
Implementations§
Source§impl ProcessingStepDescriptor
impl ProcessingStepDescriptor
Sourcepub fn new(
step_type: ProcessingStepType,
algorithm: Algorithm,
parameters: StageParameters,
order: StepOrder,
) -> Self
pub fn new( step_type: ProcessingStepType, algorithm: Algorithm, parameters: StageParameters, order: StepOrder, ) -> Self
Create a new ProcessingStepDescriptor
Sourcepub fn compression(algorithm: Algorithm, order: StepOrder) -> Self
pub fn compression(algorithm: Algorithm, order: StepOrder) -> Self
Create a compression step descriptor
Sourcepub fn encryption(algorithm: Algorithm, order: StepOrder) -> Self
pub fn encryption(algorithm: Algorithm, order: StepOrder) -> Self
Create an encryption step descriptor
Sourcepub fn checksum(algorithm: Algorithm, order: StepOrder) -> Self
pub fn checksum(algorithm: Algorithm, order: StepOrder) -> Self
Create a checksum step descriptor
Sourcepub fn pass_through(algorithm: Algorithm, order: StepOrder) -> Self
pub fn pass_through(algorithm: Algorithm, order: StepOrder) -> Self
Create a pass-through step descriptor
Sourcepub fn step_type(&self) -> &ProcessingStepType
pub fn step_type(&self) -> &ProcessingStepType
Get the step type
Sourcepub fn parameters(&self) -> &StageParameters
pub fn parameters(&self) -> &StageParameters
Get the parameters
Sourcepub fn with_parameter(
self,
key: &str,
value: &str,
) -> Result<Self, PipelineError>
pub fn with_parameter( self, key: &str, value: &str, ) -> Result<Self, PipelineError>
Add a parameter to this descriptor
Trait Implementations§
Source§impl Clone for ProcessingStepDescriptor
impl Clone for ProcessingStepDescriptor
Source§fn clone(&self) -> ProcessingStepDescriptor
fn clone(&self) -> ProcessingStepDescriptor
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ProcessingStepDescriptor
impl Debug for ProcessingStepDescriptor
Source§impl<'de> Deserialize<'de> for ProcessingStepDescriptor
impl<'de> Deserialize<'de> for ProcessingStepDescriptor
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ProcessingStepDescriptor
impl PartialEq for ProcessingStepDescriptor
Source§impl Serialize for ProcessingStepDescriptor
impl Serialize for ProcessingStepDescriptor
impl StructuralPartialEq for ProcessingStepDescriptor
Auto Trait Implementations§
impl Freeze for ProcessingStepDescriptor
impl RefUnwindSafe for ProcessingStepDescriptor
impl Send for ProcessingStepDescriptor
impl Sync for ProcessingStepDescriptor
impl Unpin for ProcessingStepDescriptor
impl UnwindSafe for ProcessingStepDescriptor
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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