remove pub
This commit is contained in:
parent
b38c8c663c
commit
2e4d6938bb
16
src/user.rs
16
src/user.rs
@ -39,24 +39,24 @@ impl User {
|
|||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
#[serde(crate = "rocket::serde")]
|
#[serde(crate = "rocket::serde")]
|
||||||
pub struct NewUser {
|
pub struct NewUser {
|
||||||
pub username: String,
|
username: String,
|
||||||
pub password: String,
|
password: String,
|
||||||
pub email: Option<String>,
|
email: Option<String>,
|
||||||
pub display_name: Option<String>,
|
display_name: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Deserialize)]
|
#[derive(Debug, Deserialize)]
|
||||||
#[serde(crate = "rocket::serde")]
|
#[serde(crate = "rocket::serde")]
|
||||||
pub struct LoginCredentials {
|
pub struct LoginCredentials {
|
||||||
pub username: String,
|
username: String,
|
||||||
pub password: String,
|
password: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize)]
|
#[derive(Debug, Serialize)]
|
||||||
#[serde(crate = "rocket::serde")]
|
#[serde(crate = "rocket::serde")]
|
||||||
pub struct LoginResponse {
|
pub struct LoginResponse {
|
||||||
pub user_id: Uuid,
|
user_id: Uuid,
|
||||||
pub username: String,
|
username: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[post("/users", data = "<new_user>")]
|
#[post("/users", data = "<new_user>")]
|
||||||
|
Loading…
Reference in New Issue
Block a user