pub struct App<Opts> { /* private fields */ }Expand description
The CLI app to run.  This wraps the functionality of the context that Opts
creates.
§Usage
To connect to the given database, the CLI needs a database url, which can be
provided via the environment variable DATABASE_URL or using the option
-D/--database-url available to a command/subcommand.
> $ my-app --help
Usage: my-app <COMMAND>
Commands:
  migrate  Operations on the set of migration files
  history  Operations on the table storing the history of these migrations
  help     Print this message or the help of the given subcommand(s)Implementations§
Auto Trait Implementations§
impl<Opts> Freeze for App<Opts>where
    Opts: Freeze,
impl<Opts> RefUnwindSafe for App<Opts>where
    Opts: RefUnwindSafe,
impl<Opts> Send for App<Opts>where
    Opts: Send,
impl<Opts> Sync for App<Opts>where
    Opts: Sync,
impl<Opts> Unpin for App<Opts>where
    Opts: Unpin,
impl<Opts> UnwindSafe for App<Opts>where
    Opts: 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