pub struct PreprocessorConfig {
pub config: Value,
pub message_oriented: bool,
pub name: String,
}Expand description
Configuration for describing a preprocessor
JSON schema
{
"description": "Configuration for describing a preprocessor",
"type": "object",
"required": [
"config",
"message_oriented",
"name"
],
"properties": {
"config": {
"description": "Arbitrary additional configuration."
},
"message_oriented": {
"description": "True if the preprocessor is message-oriented: true if each preprocessor\noutput record corresponds to a whole number of of parser records.",
"type": "boolean"
},
"name": {
"description": "Name of the preprocessor.\nAll preprocessors with the same name will perform the same task.",
"type": "string"
}
}
}Fields§
§config: ValueArbitrary additional configuration.
message_oriented: boolTrue if the preprocessor is message-oriented: true if each preprocessor output record corresponds to a whole number of of parser records.
name: StringName of the preprocessor. All preprocessors with the same name will perform the same task.
Implementations§
Source§impl PreprocessorConfig
impl PreprocessorConfig
pub fn builder() -> PreprocessorConfig
Trait Implementations§
Source§impl Clone for PreprocessorConfig
impl Clone for PreprocessorConfig
Source§fn clone(&self) -> PreprocessorConfig
fn clone(&self) -> PreprocessorConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PreprocessorConfig
impl Debug 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
Source§impl From<&PreprocessorConfig> for PreprocessorConfig
impl From<&PreprocessorConfig> for PreprocessorConfig
Source§fn from(value: &PreprocessorConfig) -> Self
fn from(value: &PreprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl From<PreprocessorConfig> for PreprocessorConfig
impl From<PreprocessorConfig> for PreprocessorConfig
Source§fn from(value: PreprocessorConfig) -> Self
fn from(value: PreprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PreprocessorConfig
impl Serialize for PreprocessorConfig
Source§impl TryFrom<PreprocessorConfig> for PreprocessorConfig
impl TryFrom<PreprocessorConfig> for PreprocessorConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PreprocessorConfig) -> Result<Self, ConversionError>
fn try_from(value: PreprocessorConfig) -> Result<Self, ConversionError>
Performs the conversion.
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