//! Transformation DSL methods: `marshal` / `unmarshal` with data formats.
usecrate::dataformat::DataFormatDefinition;usecrate::model::RouteDefinition;usecrate::processor::transform::MarshalDefinition;implRouteDefinition{/// Marshal the body with a data format, e.g.
/// `.marshal(DataFormatDefinition::json().pretty_print(true))` or `.marshal("csv")`.
pubfnmarshal(&mutself, df: impl Into<DataFormatDefinition>)->&mutSelf{self.add(Box::new(MarshalDefinition::marshal(df.into())))}/// Unmarshal the body with a data format, e.g. `.unmarshal(DataFormatDefinition::csv().delimiter(';'))`.
pubfnunmarshal(&mutself, df: impl Into<DataFormatDefinition>)->&mutSelf{self.add(Box::new(MarshalDefinition::unmarshal(df.into())))}/// Marshal the body to JSON text.
pubfnmarshal_json(&mutself)->&mutSelf{self.marshal(DataFormatDefinition::json())}/// Unmarshal JSON text to a structured body.
pubfnunmarshal_json(&mutself)->&mutSelf{self.unmarshal(DataFormatDefinition::json())}}