Struct rustorm_dao::Dao[][src]

pub struct Dao(pub BTreeMap<String, Value>);

Implementations

impl Dao[src]

pub fn new() -> Self[src]

pub fn insert<K, V>(&mut self, k: K, v: V) where
    K: ToString,
    V: ToValue
[src]

pub fn insert_value<K>(&mut self, k: K, value: &Value) where
    K: ToString
[src]

pub fn get<'a, T>(&'a self, s: &str) -> Result<T, DaoError> where
    T: FromValue
[src]

pub fn get_opt<'a, T>(&'a self, s: &str) -> Result<Option<T>, DaoError> where
    T: FromValue
[src]

pub fn get_value(&self, s: &str) -> Option<&Value>[src]

pub fn remove(&mut self, s: &str) -> Option<Value>[src]

Trait Implementations

impl Clone for Dao[src]

impl Debug for Dao[src]

impl Default for Dao[src]

impl<'de> Deserialize<'de> for Dao[src]

impl PartialEq<Dao> for Dao[src]

impl<'a> Serialize for Dao[src]

impl StructuralPartialEq for Dao[src]

Auto Trait Implementations

impl RefUnwindSafe for Dao

impl Send for Dao

impl Sync for Dao

impl Unpin for Dao

impl UnwindSafe for Dao

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.