summaryrefslogtreecommitdiff
path: root/src/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/models.rs')
-rw-r--r--src/models.rs9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/models.rs b/src/models.rs
index 28a8b65..10f7d68 100644
--- a/src/models.rs
+++ b/src/models.rs
@@ -5,10 +5,11 @@ use bcrypt;
#[derive(Insertable, Queryable)]
#[table_name = "config"]
-pub struct Config<'a> {
- pub strava_client_secret: &'a str,
- pub strava_client_id: &'a str,
- pub rocket_secret_key: &'a str,
+pub struct Config {
+ pub strava_client_secret: String,
+ pub strava_client_id: String,
+ pub rocket_secret_key: String,
+ pub singleton: bool,
}
#[derive(Insertable, Queryable)]