RawData

Trait RawData 

Source
pub trait RawData {
    // Required method
    fn get_value(&self) -> &HashMap<MetaString, Value>;

    // Provided methods
    fn get(&self, key: &str) -> Option<&Value> { ... }
    fn to_bytes(&self) -> Result<Vec<u8>, GenericError> { ... }
}
Expand description

Raw data trait for configuration data

Required Methods§

Source

fn get_value(&self) -> &HashMap<MetaString, Value>

Get the value of the data

Provided Methods§

Source

fn get(&self, key: &str) -> Option<&Value>

Get a value from the data

Source

fn to_bytes(&self) -> Result<Vec<u8>, GenericError>

Convert the data to bytes

Implementors§