Struct clia_rustorm::Dao
source · [−]Tuple Fields
0: BTreeMap<String, Value, Global>
Implementations
sourceimpl Dao
impl Dao
pub fn new() -> Dao
pub fn insert<K, V>(&mut self, k: K, v: V)where
K: ToString,
V: ToValue,
pub fn insert_value<K>(&mut self, k: K, value: &Value)where
K: ToString,
pub fn get<T>(&'a self, s: &str) -> Result<T, DaoError>where
T: FromValue,
pub fn get_opt<T>(&'a self, s: &str) -> Result<Option<T>, DaoError>where
T: FromValue,
pub fn get_value(&self, s: &str) -> Option<&Value>
pub fn remove(&mut self, s: &str) -> Option<Value>
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Dao
impl<'de> Deserialize<'de> for Dao
sourcefn deserialize<D>(
deserializer: D
) -> Result<Dao, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D
) -> Result<Dao, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<'a> Serialize for Dao
impl<'a> Serialize for Dao
sourcefn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
fn serialize<S>(
&self,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Dao
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more