pub struct OfflinePlanner { /* private fields */ }Implementations§
Source§impl OfflinePlanner
impl OfflinePlanner
pub fn new(dialect: Dialect) -> Self
pub fn from_migrations(self, migrations: Vec<Migration>) -> Self
pub fn replay(&self) -> Result<Schema, OfflineError>
pub fn make_migration( &self, desired_schema: Schema, decisions: &[Decision], ) -> Result<Option<Migration>, OfflineError>
pub fn sql_migrate( &self, migrations: &[Migration], ) -> Result<Vec<String>, OfflineError>
Trait Implementations§
Source§impl Clone for OfflinePlanner
impl Clone for OfflinePlanner
Source§fn clone(&self) -> OfflinePlanner
fn clone(&self) -> OfflinePlanner
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OfflinePlanner
impl RefUnwindSafe for OfflinePlanner
impl Send for OfflinePlanner
impl Sync for OfflinePlanner
impl Unpin for OfflinePlanner
impl UnsafeUnpin for OfflinePlanner
impl UnwindSafe for OfflinePlanner
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