pub struct DbContextOptions { /* private fields */ }Implementations§
Source§impl DbContextOptions
impl DbContextOptions
pub fn connection_string(&self) -> &str
pub fn provider_tag(&self) -> Option<&str>
pub fn lazy_loading_enabled(&self) -> bool
pub fn context_key(&self) -> Option<&str>
pub fn create_provider(&self) -> EFResult<Arc<dyn IDatabaseProvider>>
Trait Implementations§
Source§impl Clone for DbContextOptions
impl Clone for DbContextOptions
Source§fn clone(&self) -> DbContextOptions
fn clone(&self) -> DbContextOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DbContextOptions
impl Debug for DbContextOptions
Auto Trait Implementations§
impl !RefUnwindSafe for DbContextOptions
impl !UnwindSafe for DbContextOptions
impl Freeze for DbContextOptions
impl Send for DbContextOptions
impl Sync for DbContextOptions
impl Unpin for DbContextOptions
impl UnsafeUnpin for DbContextOptions
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