vizo 1.1.0

Visualize structured data formats in a more pretty way.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::values::VizValue;

use super::Processor;
use anyhow::Result;

/// A processor that processes TOML structured data.
/// Implements [`crate::processors::Processor`] trait.
pub struct TOMLProcessor;
impl Processor for TOMLProcessor {
    fn process_data(data: &str) -> Result<VizValue> {
        let values: VizValue = toml::from_str(data)?;
        Ok(values)
    }
}