pub struct AppRegistry { /* private fields */ }Expand description
Registry that combines schemas from multiple application modules.
Implementations§
Source§impl AppRegistry
impl AppRegistry
Sourcepub fn register<A: AppConfig>(self) -> Self
pub fn register<A: AppConfig>(self) -> Self
Registers one application and appends its models to the schema.
Sourcepub fn apps(&self) -> &[&'static str]
pub fn apps(&self) -> &[&'static str]
Returns registered application labels in registration order.
Sourcepub fn app_schemas(&self) -> impl Iterator<Item = (&'static str, &SchemaSet)>
pub fn app_schemas(&self) -> impl Iterator<Item = (&'static str, &SchemaSet)>
Returns schemas by owning app, preserving registration order for migration-state construction.
Sourcepub fn to_sql<D: SqlDialect>(&self) -> String
pub fn to_sql<D: SqlDialect>(&self) -> String
Exports all registered models as Atlas-compatible SQL.
Trait Implementations§
Source§impl Clone for AppRegistry
impl Clone for AppRegistry
Source§impl Debug for AppRegistry
impl Debug for AppRegistry
Source§impl Default for AppRegistry
impl Default for AppRegistry
impl Eq for AppRegistry
Source§impl PartialEq for AppRegistry
impl PartialEq for AppRegistry
impl StructuralPartialEq for AppRegistry
Auto Trait Implementations§
impl Freeze for AppRegistry
impl RefUnwindSafe for AppRegistry
impl Send for AppRegistry
impl Sync for AppRegistry
impl Unpin for AppRegistry
impl UnsafeUnpin for AppRegistry
impl UnwindSafe for AppRegistry
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