RegisterResult #11
No files matched your search
Generated
+1
-1
@@ -486,7 +486,7 @@ checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
|
||||
|
||||
[[package]]
|
||||
name = "simodels"
|
||||
version = "0.11.10"
|
||||
version = "0.11.20"
|
||||
dependencies = [
|
||||
"josekit",
|
||||
"rand",
|
||||
|
||||
+3
-2
@@ -1,6 +1,6 @@
|
||||
[package]
|
||||
name = "simodels"
|
||||
version = "0.11.10"
|
||||
version = "0.11.20"
|
||||
edition = "2024"
|
||||
rust-version = "1.95"
|
||||
description = "Models used for the soaricarus project"
|
||||
@@ -18,13 +18,14 @@ utoipa = { version = "6.0.0", features = ["uuid", "time"] }
|
||||
[features]
|
||||
default = ["full"]
|
||||
full = ["access_level", "album", "constants", "coverart", "ledger", "login_result", "song", "token", "types", "user", "util"]
|
||||
auth = ["constants", "login_result", "token", "user"]
|
||||
auth = ["constants", "login_result", "register_result", "token", "user"]
|
||||
access_level = ["constants"]
|
||||
album = []
|
||||
constants = []
|
||||
coverart = ["constants", "types"]
|
||||
ledger = ["constants", "song", "types", "user"]
|
||||
login_result = ["constants", "token", "user"]
|
||||
register_result = []
|
||||
song = ["constants", "types"]
|
||||
token = []
|
||||
types = []
|
||||
|
||||
@@ -4,6 +4,7 @@ pub mod constants;
|
||||
pub mod coverart;
|
||||
pub mod ledger;
|
||||
pub mod login_result;
|
||||
pub mod register_result;
|
||||
pub mod song;
|
||||
pub mod token;
|
||||
pub mod types;
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
#[derive(Debug, Default, Deserialize, Serialize, utoipa::ToSchema)]
|
||||
pub struct RegisterResult {
|
||||
pub id: uuid::Uuid,
|
||||
pub username: String,
|
||||
pub email: String,
|
||||
pub firstname: String,
|
||||
pub lastname: String,
|
||||
#[serde(with = "time::serde::rfc3339::option")]
|
||||
pub date_created: Option<time::OffsetDateTime>,
|
||||
}
|
||||
Reference in new issue
Block a user