pub struct Migrator { /* private fields */ }
Implementations§
Source§impl Migrator
impl Migrator
pub fn new() -> Self
pub fn verbose(self, enable: bool) -> Self
pub fn migrate_file<P: AsRef<Path>>( &self, input: P, output: Option<P>, ) -> Result<String>
pub fn migrate_json(&self, json_str: &str) -> Result<String>
pub fn migrate_toml(&self, toml_str: &str) -> Result<String>
pub fn migrate_yaml(&self, yaml_str: &str) -> Result<String>
pub fn migrate_env(&self, env_str: &str) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Migrator
impl RefUnwindSafe for Migrator
impl Send for Migrator
impl Sync for Migrator
impl Unpin for Migrator
impl UnwindSafe for Migrator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more