pub struct PreprocessingStep {
pub name: String,
pub params: HashMap<String, String>,
pub order: u32,
}Expand description
A preprocessing step applied to the document.
Fields§
§name: StringName of the step
params: HashMap<String, String>Parameters/configuration
order: u32Order in the pipeline (0 = first)
Implementations§
Source§impl PreprocessingStep
impl PreprocessingStep
Sourcepub fn new(name: impl Into<String>, order: u32) -> PreprocessingStep
pub fn new(name: impl Into<String>, order: u32) -> PreprocessingStep
Create a new preprocessing step.
Sourcepub fn with_param(
self,
key: impl Into<String>,
value: impl Into<String>,
) -> PreprocessingStep
pub fn with_param( self, key: impl Into<String>, value: impl Into<String>, ) -> PreprocessingStep
Add a parameter.
Trait Implementations§
Source§impl Clone for PreprocessingStep
impl Clone for PreprocessingStep
Source§fn clone(&self) -> PreprocessingStep
fn clone(&self) -> PreprocessingStep
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 PreprocessingStep
impl Debug for PreprocessingStep
Source§impl<'de> Deserialize<'de> for PreprocessingStep
impl<'de> Deserialize<'de> for PreprocessingStep
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreprocessingStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PreprocessingStep, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PreprocessingStep
impl PartialEq for PreprocessingStep
Source§impl Serialize for PreprocessingStep
impl Serialize for PreprocessingStep
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PreprocessingStep
Auto Trait Implementations§
impl Freeze for PreprocessingStep
impl RefUnwindSafe for PreprocessingStep
impl Send for PreprocessingStep
impl Sync for PreprocessingStep
impl Unpin for PreprocessingStep
impl UnsafeUnpin for PreprocessingStep
impl UnwindSafe for PreprocessingStep
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> 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>
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