pub struct InfuseDB {
pub path: String,
/* private fields */
}Fields§
§path: StringImplementations§
Source§impl InfuseDB
impl InfuseDB
pub fn new() -> Self
pub fn load(path: &str) -> Result<Self, &str>
pub fn dump(&self) -> Result<(), &str>
pub fn create_collection(&mut self, name: &str) -> Result<&mut Collection, &str>
pub fn get_collection(&mut self, name: &str) -> Option<&mut Collection>
pub fn get_collection_list(&self) -> Vec<String>
pub fn remove_collection(&mut self, name: String)
Auto Trait Implementations§
impl Freeze for InfuseDB
impl RefUnwindSafe for InfuseDB
impl Send for InfuseDB
impl Sync for InfuseDB
impl Unpin for InfuseDB
impl UnwindSafe for InfuseDB
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