[−]Struct oxidizer::migration::config::Config
Implementations
impl Config
pub fn new(db_type: ConfigDbType) -> Config
create a new config instance
pub fn from_file_location<T>(location: T) -> Result<Config, Error> where
T: AsRef<Path>,
T: AsRef<Path>,
create a new Config instance from a config file located on the file system
pub fn db_type(&self) -> ConfigDbType
pub fn set_db_user(self, db_user: &str) -> Config
pub fn set_db_pass(self, db_pass: &str) -> Config
pub fn set_db_path(self, db_path: &str) -> Config
pub fn set_db_host(self, db_host: &str) -> Config
pub fn set_db_port(self, db_port: &str) -> Config
pub fn set_db_name(self, db_name: &str) -> Config
Trait Implementations
impl AsyncMigrate for Config
fn get_last_applied_migration<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Migration>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Config: 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Option<Migration>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Config: 'async_trait,
fn get_applied_migrations<'life0, 'async_trait>(
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Config: 'async_trait,
&'life0 mut self
) -> Pin<Box<dyn Future<Output = Result<Vec<Migration>, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
Config: 'async_trait,
fn migrate<'life0, 'life1, 'async_trait>(
&'life0 mut self,
migrations: &'life1 [Migration],
abort_divergent: bool,
abort_missing: bool,
grouped: bool,
target: Target
) -> Pin<Box<dyn Future<Output = Result<Report, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Config: 'async_trait,
&'life0 mut self,
migrations: &'life1 [Migration],
abort_divergent: bool,
abort_missing: bool,
grouped: bool,
target: Target
) -> Pin<Box<dyn Future<Output = Result<Report, Error>> + 'async_trait + Send>> where
'life0: 'async_trait,
'life1: 'async_trait,
Config: 'async_trait,
impl Debug for Config
impl<'de> Deserialize<'de> for Config
fn deserialize<__D>(
__deserializer: __D
) -> Result<Config, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
__deserializer: __D
) -> Result<Config, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
impl Serialize for Config
fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,