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 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§fn clone(&self) -> AppRegistry
fn clone(&self) -> AppRegistry
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 moreSource§impl Debug for AppRegistry
impl Debug for AppRegistry
Source§impl Default for AppRegistry
impl Default for AppRegistry
Source§fn default() -> AppRegistry
fn default() -> AppRegistry
Returns the “default value” for a type. Read more
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