diff options
author | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:12:16 -0600 |
---|---|---|
committer | Melody Horn / boringcactus <melody@boringcactus.com> | 2021-06-18 10:12:16 -0600 |
commit | 709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7 (patch) | |
tree | cc4aa6854147c0dc74bbd3bea9b8b9cfc083b62f /src/apps.rs | |
parent | 3b880c0ae7963d783fb87a3389f98070e448495a (diff) | |
download | tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.tar.gz tosin-709eb44ccb8d08ad7f26cdac2932eadc7ccd48e7.zip |
make model metadata available in AppConfig
Diffstat (limited to 'src/apps.rs')
-rw-r--r-- | src/apps.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/apps.rs b/src/apps.rs index f72a883..8c16136 100644 --- a/src/apps.rs +++ b/src/apps.rs @@ -1,6 +1,8 @@ use crate::db::migration::Migration; +use crate::db::models::ModelMeta; pub struct AppConfig { pub name: &'static str, + pub models: &'static [ModelMeta], pub migrations: &'static [Migration], } |