diff options
Diffstat (limited to 'src/state.rs')
| -rw-r--r-- | src/state.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs new file mode 100644 index 0000000..9779b46 --- /dev/null +++ b/src/state.rs | |||
| @@ -0,0 +1,7 @@ | |||
| 1 | use sea_orm::DatabaseConnection; | ||
| 2 | |||
| 3 | #[derive(Clone)] | ||
| 4 | pub struct AppState { | ||
| 5 | pub db: DatabaseConnection, | ||
| 6 | pub secret: String, | ||
| 7 | } | ||
