pub struct PostprocessorConfig {
pub config: Value,
pub name: String,
}Expand description
Configuration for describing a postprocessor
JSON schema
{
"description": "Configuration for describing a postprocessor",
"type": "object",
"required": [
"config",
"name"
],
"properties": {
"config": {
"description": "Arbitrary additional configuration expected by the postprocessor\nencoded as a JSON Value."
},
"name": {
"description": "Name of the postprocessor.\nAll postprocessors with the same name will perform the same task.",
"type": "string"
}
}
}Fields§
§config: ValueArbitrary additional configuration expected by the postprocessor encoded as a JSON Value.
name: StringName of the postprocessor. All postprocessors with the same name will perform the same task.
Implementations§
Source§impl PostprocessorConfig
impl PostprocessorConfig
pub fn builder() -> PostprocessorConfig
Trait Implementations§
Source§impl Clone for PostprocessorConfig
impl Clone for PostprocessorConfig
Source§fn clone(&self) -> PostprocessorConfig
fn clone(&self) -> PostprocessorConfig
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 PostprocessorConfig
impl Debug for PostprocessorConfig
Source§impl<'de> Deserialize<'de> for PostprocessorConfig
impl<'de> Deserialize<'de> for PostprocessorConfig
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<&PostprocessorConfig> for PostprocessorConfig
impl From<&PostprocessorConfig> for PostprocessorConfig
Source§fn from(value: &PostprocessorConfig) -> Self
fn from(value: &PostprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl From<PostprocessorConfig> for PostprocessorConfig
impl From<PostprocessorConfig> for PostprocessorConfig
Source§fn from(value: PostprocessorConfig) -> Self
fn from(value: PostprocessorConfig) -> Self
Converts to this type from the input type.
Source§impl Serialize for PostprocessorConfig
impl Serialize for PostprocessorConfig
Source§impl TryFrom<PostprocessorConfig> for PostprocessorConfig
impl TryFrom<PostprocessorConfig> for PostprocessorConfig
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: PostprocessorConfig) -> Result<Self, ConversionError>
fn try_from(value: PostprocessorConfig) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for PostprocessorConfig
impl RefUnwindSafe for PostprocessorConfig
impl Send for PostprocessorConfig
impl Sync for PostprocessorConfig
impl Unpin for PostprocessorConfig
impl UnsafeUnpin for PostprocessorConfig
impl UnwindSafe for PostprocessorConfig
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