pub struct KeyValues { /* private fields */ }Implementations§
Source§impl KeyValues
impl KeyValues
pub fn from_model(model: Vec<KeyValueModel>) -> Self
Sourcepub fn insert<S: Into<String>>(&mut self, key: S, value: S)
pub fn insert<S: Into<String>>(&mut self, key: S, value: S)
Inserts an already base64 encoded key and value
pub fn iter(&self) -> impl Iterator<Item = &KeyValue>
pub fn iter_mut(&mut self) -> impl Iterator<Item = &mut KeyValue>
pub fn push(&mut self, kv: KeyValue)
pub fn keys(&self) -> impl Iterator<Item = EncodedString> + '_
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyValues
impl RefUnwindSafe for KeyValues
impl Send for KeyValues
impl Sync for KeyValues
impl Unpin for KeyValues
impl UnwindSafe for KeyValues
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