pub struct TransformPipeline {
pub name: String,
pub description: Option<String>,
pub transforms: Vec<PayloadTransform>,
}Expand description
Transformation pipeline for chaining multiple transforms
Fields§
§name: StringName of the pipeline
description: Option<String>Description
transforms: Vec<PayloadTransform>Transforms to apply in order
Implementations§
Source§impl TransformPipeline
impl TransformPipeline
Sourcepub fn with_description(self, description: &str) -> Self
pub fn with_description(self, description: &str) -> Self
Add description
Sourcepub fn add(self, transform: PayloadTransform) -> Self
pub fn add(self, transform: PayloadTransform) -> Self
Add a transform to the pipeline
Trait Implementations§
Source§impl Clone for TransformPipeline
impl Clone for TransformPipeline
Source§fn clone(&self) -> TransformPipeline
fn clone(&self) -> TransformPipeline
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 TransformPipeline
impl Debug for TransformPipeline
Source§impl Default for TransformPipeline
impl Default for TransformPipeline
Source§fn default() -> TransformPipeline
fn default() -> TransformPipeline
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TransformPipeline
impl<'de> Deserialize<'de> for TransformPipeline
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
Auto Trait Implementations§
impl Freeze for TransformPipeline
impl RefUnwindSafe for TransformPipeline
impl Send for TransformPipeline
impl Sync for TransformPipeline
impl Unpin for TransformPipeline
impl UnwindSafe for TransformPipeline
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