#[derive(Debug)]
pub struct Empty;
#[cfg(feature = "cli")]
#[async_trait::async_trait]
impl<S> crate::api::cli::RunCommand<crate::app::RoadsterApp<S, Empty>, S> for Empty
where
S: 'static + Send + Sync + Clone,
crate::app::context::AppContext: axum_core::extract::FromRef<S>,
{
type Error = std::convert::Infallible;
async fn run(
&self,
_prepared_app: &crate::api::cli::CliState<crate::app::RoadsterApp<S, Empty>, S>,
) -> Result<bool, Self::Error> {
Ok(false)
}
}
#[cfg(feature = "cli")]
impl clap::Args for Empty {
fn augment_args(cmd: clap::Command) -> clap::Command {
cmd
}
fn augment_args_for_update(cmd: clap::Command) -> clap::Command {
cmd
}
}
#[cfg(feature = "cli")]
impl clap::FromArgMatches for Empty {
fn from_arg_matches(_matches: &clap::ArgMatches) -> Result<Self, clap::Error> {
Ok(Empty)
}
fn update_from_arg_matches(&mut self, _matches: &clap::ArgMatches) -> Result<(), clap::Error> {
Ok(())
}
}
#[cfg(feature = "db-diesel-postgres-pool-async")]
impl
bb8::CustomizeConnection<
crate::db::DieselPgConnAsync,
diesel_async::pooled_connection::PoolError,
> for Empty
{
}
#[cfg(feature = "db-diesel-mysql-pool-async")]
impl
bb8::CustomizeConnection<
crate::db::DieselMysqlConnAsync,
diesel_async::pooled_connection::PoolError,
> for Empty
{
}