pub struct ConfigEnvironment {
pub name: String,
pub is_production: bool,
pub connection: ConnectionInfo,
pub schema_name: Option<String>,
}Fields§
§name: String§is_production: bool§connection: ConnectionInfo§schema_name: Option<String>Implementations§
Source§impl ConfigEnvironment
impl ConfigEnvironment
pub fn backend(&self) -> Result<Box<dyn DatabaseBackend>>
Trait Implementations§
Source§impl Clone for ConfigEnvironment
impl Clone for ConfigEnvironment
Source§fn clone(&self) -> ConfigEnvironment
fn clone(&self) -> ConfigEnvironment
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 moreAuto Trait Implementations§
impl Freeze for ConfigEnvironment
impl RefUnwindSafe for ConfigEnvironment
impl Send for ConfigEnvironment
impl Sync for ConfigEnvironment
impl Unpin for ConfigEnvironment
impl UnwindSafe for ConfigEnvironment
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