pub struct MemoryStore { /* private fields */ }Expand description
In-memory document store for testing
This store keeps the document in memory only - it will be lost on restart. Useful for unit tests and development.
Implementations§
Source§impl MemoryStore
impl MemoryStore
Sourcepub fn with_document(doc: HiveDocument) -> Self
pub fn with_document(doc: HiveDocument) -> Self
Create a memory store pre-populated with a document
Trait Implementations§
Source§impl Default for MemoryStore
impl Default for MemoryStore
Source§fn default() -> MemoryStore
fn default() -> MemoryStore
Returns the “default value” for a type. Read more
Source§impl DocumentStore for MemoryStore
Available on crate feature std only.
impl DocumentStore for MemoryStore
Available on crate feature
std only.Auto Trait Implementations§
impl !Freeze for MemoryStore
impl RefUnwindSafe for MemoryStore
impl Send for MemoryStore
impl Sync for MemoryStore
impl Unpin for MemoryStore
impl UnwindSafe for MemoryStore
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