fix: make these available for use
This commit is contained in:
parent
88abff575f
commit
c3ed7fe02c
1 changed files with 7 additions and 7 deletions
14
src/lib.rs
14
src/lib.rs
|
@ -34,13 +34,13 @@ pub struct AccountsPending {
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Serialize, sqlx::FromRow)]
|
#[derive(Debug, Deserialize, Serialize, sqlx::FromRow)]
|
||||||
pub struct Accounts {
|
pub struct Accounts {
|
||||||
user: String,
|
pub user: String,
|
||||||
uid: i64,
|
pub uid: i64,
|
||||||
discord: Option<String>,
|
pub discord: Option<String>,
|
||||||
mail: String,
|
pub mail: String,
|
||||||
student_id: String,
|
pub student_id: String,
|
||||||
enabled: bool,
|
pub enabled: bool,
|
||||||
secure: bool,
|
pub secure: bool,
|
||||||
}
|
}
|
||||||
|
|
||||||
pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
|
pub async fn db_init(config: &Config) -> Result<Pool<Sqlite>, Error> {
|
||||||
|
|
Loading…
Reference in a new issue