Enum microrm::CreateMode
source · pub enum CreateMode {
MustExist,
AllowNewDatabase,
AllowSchemaUpdate,
}
Variants§
MustExist
The database must exist and have a valid schema already
AllowNewDatabase
It’s fine if the database doesn’t exist, but it must have a valid schema if it does
AllowSchemaUpdate
Nuke the contents if need be, just get the database
Trait Implementations§
source§impl Debug for CreateMode
impl Debug for CreateMode
source§impl PartialEq for CreateMode
impl PartialEq for CreateMode
source§fn eq(&self, other: &CreateMode) -> bool
fn eq(&self, other: &CreateMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for CreateMode
Auto Trait Implementations§
impl RefUnwindSafe for CreateMode
impl Send for CreateMode
impl Sync for CreateMode
impl Unpin for CreateMode
impl UnwindSafe for CreateMode
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