pub struct DictState {
pub data: HashMap<String, Value>,
}Expand description
A simple dictionary-based state.
Useful for quick prototypes or when you don’t need custom merge logic.
Fields§
§data: HashMap<String, Value>The state data
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DictState
impl<'de> Deserialize<'de> for DictState
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for DictState
impl RefUnwindSafe for DictState
impl Send for DictState
impl Sync for DictState
impl Unpin for DictState
impl UnsafeUnpin for DictState
impl UnwindSafe for DictState
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more