pub fn with_formatter<T>(self, formatter: T) -> Self
    where
        T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
    {
        StdoutExporterBuilder {
            formatter: Some(Formatter(Box::new(formatter))),
            ..self
        }
    }
/// Set a formatter for serializing export batch data
Set a formatter for serializing export batch data
Set a formatter for serializing export batch data
pub fn with_formatter<T>(self, formatter: T) -> Self
    where
        T: Fn(ExportBatch) -> Result<String> + Send + Sync + 'static,
    {
        StdoutExporterBuilder {
            formatter: Some(Formatter(Box::new(formatter))),
            ..self
        }
    }
pub fn with_formatter < T > ( self , formatter : T ) -> Self where T : Fn ( ExportBatch ) -> Result < String > + Send + Sync + ' static , { StdoutExporterBuilder { formatter : Some ( Formatter ( Box :: new ( formatter ) ) ) , .. self } }
Set a formatter for serializing export batch data
Set a formatter for serializing export batch data
self
formatter
T
self
formatter
T