pub struct Reshape { /* private fields */ }Implementations§
Source§impl Reshape
impl Reshape
pub fn new(connection_string: &str) -> Result<Reshape>
pub fn new_with_options( host: &str, port: u16, database: &str, username: &str, password: &str, ) -> Result<Reshape>
pub fn migrate( &mut self, migrations: impl IntoIterator<Item = Migration>, ) -> Result<()>
pub fn complete(&mut self) -> Result<()>
pub fn abort(&mut self) -> Result<()>
pub fn remove(&mut self) -> Result<()>
Auto Trait Implementations§
impl !Freeze for Reshape
impl !RefUnwindSafe for Reshape
impl Send for Reshape
impl !Sync for Reshape
impl Unpin for Reshape
impl !UnwindSafe for Reshape
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