pub struct Schema<'a> { /* private fields */ }Expand description
The top-level diff between two database schemas.
Contains a Tables describing created, dropped, and altered tables.
Constructed via Schema::from.
§Examples
ⓘ
use toasty_core::schema::{db::Schema as DbSchema, diff};
let previous = DbSchema::default();
let next = DbSchema::default();
let hints = diff::RenameHints::new();
let d = diff::Schema::from(&previous, &next, &hints);
assert!(d.is_empty());Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Schema<'a>
impl<'a> RefUnwindSafe for Schema<'a>
impl<'a> Send for Schema<'a>
impl<'a> Sync for Schema<'a>
impl<'a> Unpin for Schema<'a>
impl<'a> UnsafeUnpin for Schema<'a>
impl<'a> UnwindSafe for Schema<'a>
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