pub trait Translator {
    fn spec(&self) -> &Map<String, Value>;
fn status(&self) -> &Map<String, Value>;
fn spec_mut(&mut self) -> &mut Map<String, Value>;
fn status_mut(&mut self) -> &mut Map<String, Value>; fn section<D>(&self) -> Option<Result<D, Error>>
    where
        D: for<'de> Deserialize<'de> + Dialect
, { ... }
fn set_section<D>(&mut self, d: D) -> Result<(), Error>
    where
        D: Serialize + Dialect
, { ... }
fn update_section<D, F>(&mut self, f: F) -> Result<(), Error>
    where
        D: Serialize + for<'de> Deserialize<'de> + Dialect + Default,
        F: FnOnce(D) -> D
, { ... }
fn clear_section<D>(&mut self)
    where
        D: Serialize + Dialect
, { ... }
fn spec_for<T, S>(&self, key: S) -> Option<Result<T, Error>>
    where
        T: for<'de> Deserialize<'de>,
        S: AsRef<str>
, { ... }
fn status_for<T, S>(&self, key: S) -> Option<Result<T, Error>>
    where
        T: for<'de> Deserialize<'de>,
        S: AsRef<str>
, { ... }
fn attribute<A>(&self) -> A::Output
    where
        A: Attribute
, { ... } }
Expand description

A translator for the data sections of a resource.

Required methods

Provided methods

Implementors