pub struct Pgbatis {
pub pools: OnceCell<Pool>,
pub logic_plugin: Option<Box<dyn LogicDelete>>,
}
Fields§
§pools: OnceCell<Pool>
§logic_plugin: Option<Box<dyn LogicDelete>>
Implementations§
source§impl Pgbatis
impl Pgbatis
pub fn new() -> Self
sourcepub fn new_with_opt() -> Self
pub fn new_with_opt() -> Self
new Rbatis from Option
pub fn set_logic_delete(&mut self, arg: Option<impl LogicDelete + 'static>)
Auto Trait Implementations§
impl !Freeze for Pgbatis
impl !RefUnwindSafe for Pgbatis
impl Send for Pgbatis
impl Sync for Pgbatis
impl Unpin for Pgbatis
impl !UnwindSafe for Pgbatis
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