pub enum PreprocessorConfig {
None,
Prefix {
prefix: String,
},
Template {
template: String,
},
}Expand description
Preprocessor configuration, deserializable from service config files.
Variants§
None
No preprocessing (default).
Prefix
Prepend a fixed prefix to every text.
Template
Substitute {{text}} into a template.
Trait Implementations§
Source§impl Clone for PreprocessorConfig
impl Clone for PreprocessorConfig
Source§impl Debug for PreprocessorConfig
impl Debug for PreprocessorConfig
Source§impl Default for PreprocessorConfig
impl Default for PreprocessorConfig
Source§impl<'de> Deserialize<'de> for PreprocessorConfig
impl<'de> Deserialize<'de> for PreprocessorConfig
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 PreprocessorConfig
impl RefUnwindSafe for PreprocessorConfig
impl Send for PreprocessorConfig
impl Sync for PreprocessorConfig
impl Unpin for PreprocessorConfig
impl UnsafeUnpin for PreprocessorConfig
impl UnwindSafe for PreprocessorConfig
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