base_d/encoders/algorithms/schema/serializers/
mod.rs

1pub mod json;
2
3use crate::encoders::algorithms::schema::types::IntermediateRepresentation;
4
5/// Trait for serializing intermediate representation to output formats
6pub trait OutputSerializer {
7    type Error;
8
9    /// Serialize intermediate representation to output string
10    fn serialize(ir: &IntermediateRepresentation, pretty: bool) -> Result<String, Self::Error>;
11}
12
13pub use json::JsonSerializer;