pub struct SchemaSet { /* private fields */ }Expand description
A collection of model schemas exported as one Atlas-compatible SQL schema.
Implementations§
Source§impl SchemaSet
impl SchemaSet
Sourcepub fn validate(&self) -> Result<(), SchemaError>
pub fn validate(&self) -> Result<(), SchemaError>
Validates every registered table and rejects duplicate table names.
Sourcepub fn try_to_sql<D: SqlDialect>(&self) -> Result<String, SchemaError>
pub fn try_to_sql<D: SqlDialect>(&self) -> Result<String, SchemaError>
Exports SQL and returns schema validation errors instead of panicking.
Trait Implementations§
impl Eq for SchemaSet
impl StructuralPartialEq for SchemaSet
Auto Trait Implementations§
impl Freeze for SchemaSet
impl RefUnwindSafe for SchemaSet
impl Send for SchemaSet
impl Sync for SchemaSet
impl Unpin for SchemaSet
impl UnsafeUnpin for SchemaSet
impl UnwindSafe for SchemaSet
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