pub struct MediaModule;Trait Implementations§
Source§impl AppModule for MediaModule
impl AppModule for MediaModule
fn name(&self) -> &'static str
fn schema(&self) -> SchemaSet
fn init(&self, context: &mut ModuleContext)
fn start(&self, state: &AppState)
Source§fn migrations(&self) -> Vec<Migration>
fn migrations(&self) -> Vec<Migration>
Compiled migrations owned by this application, including portable
project modules. Legacy project registries may still be passed to Management.
Source§fn migration_path(&self) -> Option<&'static str>
fn migration_path(&self) -> Option<&'static str>
Writable source directory for makemigrations. None denotes a library
application whose migration sources are not managed by this project.
Source§fn sync_registry(&self) -> Option<Registry>
fn sync_registry(&self) -> Option<Registry>
Register server synchronization tables in the desired migration state.
Several modules may expose their registries; shared server metadata
tables are included once per database.
Source§fn schema_objects(&self) -> Vec<SchemaObjectState>
fn schema_objects(&self) -> Vec<SchemaObjectState>
Triggers and views owned by this application. Their
app field is
assigned from Self::name while collecting migration state.fn subscribe(&self, _state: &AppState)
fn middleware(&self, router: Router, _state: &AppState) -> Router
fn openapi(&self, _state: &AppState) -> Value
Auto Trait Implementations§
impl Forget for MediaModule
impl Freeze for MediaModule
impl Move for MediaModule
impl RefUnwindSafe for MediaModule
impl Send for MediaModule
impl Sync for MediaModule
impl Unpin for MediaModule
impl UnsafeUnpin for MediaModule
impl UnwindSafe for MediaModule
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