pub struct DustData {
pub config: DustDataConfig,
pub lsm: Lsm,
}Fields§
§config: DustDataConfig§lsm: LsmImplementations§
Source§impl DustData
impl DustData
pub fn new(configuration: DustDataConfig) -> Self
Sourcepub fn update(&mut self, key: &str, bson: Bson) -> Result<()>
pub fn update(&mut self, key: &str, bson: Bson) -> Result<()>
Update a value with a key
§Arguments
key: a key to search for and update it.document: the new document to replace the old one.
Auto Trait Implementations§
impl Freeze for DustData
impl RefUnwindSafe for DustData
impl Send for DustData
impl Sync for DustData
impl Unpin for DustData
impl UnwindSafe for DustData
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