Skip to main content

Database

Trait Database 

Source
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§

Source

fn name(&self) -> &str

Source

fn image(&self) -> &str

Source

fn port(&self) -> u16

Source

fn env_vars(&self) -> Vec<(String, String)>

Source

fn connection_url(&self) -> String

Source

fn default() -> Self
where Self: Sized,

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§