pub struct Context {
pub config: Config,
pub dry_run: bool,
pub no_lock: bool,
pub ignore_missing: bool,
}Expand description
Runtime context shared by command handlers.
Fields§
§config: ConfigFully resolved configuration.
dry_run: boolPrint SQL instead of executing it.
no_lock: boolSkip advisory locking.
ignore_missing: boolIgnore applied migrations that are no longer present on disk.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Forget for Context
impl Freeze for Contextwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, SetValZST> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, SetValZST)>>: Freeze,
*const LeafNode<char, SetValZST> is !null: Freeze,
PhantomData<Box<(char, SetValZST)>>: Freeze,
PhantomData<String>: Freeze,
impl Move for Context
impl RefUnwindSafe for Context
impl Send for Context
impl Sync for Context
impl Unpin for Context
impl UnsafeUnpin for Contextwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, SetValZST> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, SetValZST)>>: UnsafeUnpin,
*const LeafNode<char, SetValZST> is !null: UnsafeUnpin,
PhantomData<Box<(char, SetValZST)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for Contextwhere
RawVecInner: UnwindSafe,
BTreeMap<String, SetValZST>: UnwindSafe,
BTreeMap<char, SetValZST>: UnwindSafe,
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