#[non_exhaustive]pub struct DatabaseType {
pub provider: DatabaseProvider,
pub engine: DatabaseEngine,
/* private fields */
}Expand description
A message defining the database engine and provider.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.provider: DatabaseProviderThe database provider.
engine: DatabaseEngineThe database engine.
Implementations§
Source§impl DatabaseType
impl DatabaseType
pub fn new() -> Self
Sourcepub fn set_provider<T: Into<DatabaseProvider>>(self, v: T) -> Self
pub fn set_provider<T: Into<DatabaseProvider>>(self, v: T) -> Self
Sets the value of provider.
Sourcepub fn set_engine<T: Into<DatabaseEngine>>(self, v: T) -> Self
pub fn set_engine<T: Into<DatabaseEngine>>(self, v: T) -> Self
Sets the value of engine.
Trait Implementations§
Source§impl Clone for DatabaseType
impl Clone for DatabaseType
Source§fn clone(&self) -> DatabaseType
fn clone(&self) -> DatabaseType
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DatabaseType
impl Debug for DatabaseType
Source§impl Default for DatabaseType
impl Default for DatabaseType
Source§fn default() -> DatabaseType
fn default() -> DatabaseType
Returns the “default value” for a type. Read more
Source§impl Message for DatabaseType
impl Message for DatabaseType
Source§impl PartialEq for DatabaseType
impl PartialEq for DatabaseType
impl StructuralPartialEq for DatabaseType
Auto Trait Implementations§
impl Freeze for DatabaseType
impl RefUnwindSafe for DatabaseType
impl Send for DatabaseType
impl Sync for DatabaseType
impl Unpin for DatabaseType
impl UnwindSafe for DatabaseType
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