pub struct MongoDatabase {
pub collection: Option<RustSafeName>,
pub storage: Storage,
}Expand description
MongoDB’s own options.
A collection and no schema, which is the whole point of splitting the type: mongo’s
vocabulary is not SQL’s, and now it cannot be given SQL’s.
Fields§
§collection: Option<RustSafeName>collection = "…", overriding Persist::table. Mongo’s word for the same thing.
storage: StorageEverything every backend carries.
Trait Implementations§
Source§impl Clone for MongoDatabase
impl Clone for MongoDatabase
Auto Trait Implementations§
impl !Send for MongoDatabase
impl !Sync for MongoDatabase
impl Freeze for MongoDatabase
impl RefUnwindSafe for MongoDatabase
impl Unpin for MongoDatabase
impl UnsafeUnpin for MongoDatabase
impl UnwindSafe for MongoDatabase
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