pub trait Database {
// Required methods
fn name(&self) -> &str;
fn image(&self) -> &str;
fn port(&self) -> u16;
fn env_vars(&self) -> Vec<(String, String)>;
fn connection_url(&self) -> String;
fn default() -> Self
where Self: Sized;
}Required Methods§
fn name(&self) -> &str
fn image(&self) -> &str
fn port(&self) -> u16
fn env_vars(&self) -> Vec<(String, String)>
fn connection_url(&self) -> String
fn default() -> Selfwhere
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".