pub struct JsonFormatter;Expand description
JSON formatter
Trait Implementations§
Source§impl DataFormatter for JsonFormatter
impl DataFormatter for JsonFormatter
fn format_metrics<'life0, 'life1, 'async_trait>(
&'life0 self,
metrics: &'life1 [Metric],
) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn format_health_report<'life0, 'life1, 'async_trait>(
&'life0 self,
report: &'life1 HealthReport,
) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn format_performance_report<'life0, 'life1, 'async_trait>(
&'life0 self,
report: &'life1 PerformanceReport,
) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn format_system_overview<'life0, 'life1, 'async_trait>(
&'life0 self,
overview: &'life1 SystemOverview,
) -> Pin<Box<dyn Future<Output = RragResult<Vec<u8>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn content_type(&self) -> &'static str
fn file_extension(&self) -> &'static str
Auto Trait Implementations§
impl Freeze for JsonFormatter
impl RefUnwindSafe for JsonFormatter
impl Send for JsonFormatter
impl Sync for JsonFormatter
impl Unpin for JsonFormatter
impl UnwindSafe for JsonFormatter
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