pub trait DatabaseAutoCreation {
// Required methods
fn create_database_if_not_exists(
&self,
) -> impl Future<Output = Result<bool, AutoCreationError>> + Send;
fn create_tables_if_not_exist(
&self,
) -> impl Future<Output = Result<Vec<String>, AutoCreationError>> + Send;
fn verify_connection(
&self,
) -> impl Future<Output = Result<(), AutoCreationError>> + Send;
}Required Methods§
fn create_database_if_not_exists( &self, ) -> impl Future<Output = Result<bool, AutoCreationError>> + Send
fn create_tables_if_not_exist( &self, ) -> impl Future<Output = Result<Vec<String>, AutoCreationError>> + Send
fn verify_connection( &self, ) -> impl Future<Output = Result<(), AutoCreationError>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.