Add a request message for user details

This commit is contained in:
Valentin Tolmer 2021-06-30 20:00:44 +02:00 committed by nitnelave
parent a731777514
commit 5a5db13cc2

View File

@ -86,6 +86,11 @@ pub struct ListUsersRequest {
pub filters: Option<RequestFilter>, pub filters: Option<RequestFilter>,
} }
#[derive(PartialEq, Eq, Debug, Serialize, Deserialize, Clone)]
pub struct UserDetailsRequest {
pub user_id: String,
}
#[derive(PartialEq, Eq, Debug, Serialize, Deserialize)] #[derive(PartialEq, Eq, Debug, Serialize, Deserialize)]
#[cfg_attr(not(target_arch = "wasm32"), derive(sqlx::FromRow))] #[cfg_attr(not(target_arch = "wasm32"), derive(sqlx::FromRow))]
pub struct User { pub struct User {