Compare commits

..
Author SHA1 Message Date
phoenix 4153157cf3 bump: simodels
simodels Build / Check (pull_request) Successful in 1m15s
simodels Build / build (pull_request) Successful in 1m19s
Release Tagging / release (pull_request) Successful in 1m26s
simodels Build / Rustfmt (pull_request) Failing after 1m28s
simodels Build / Clippy (pull_request) Successful in 1m28s
simodels Build / Test Suite (pull_request) Successful in 1m28s
2026-11-19 11:19:29 -05:00
phoenix 9319d25344 Adding RegisterResult 2026-11-19 11:18:43 -05:00
4 changed files with 2 additions and 36 deletions

No files matched your search

+1 -2
View File
@@ -18,14 +18,13 @@ utoipa = { version = "6.0.0", features = ["uuid", "time"] }
[features] [features]
default = ["full"] default = ["full"]
full = ["access_level", "album", "constants", "coverart", "ledger", "login_result", "song", "token", "types", "user", "util"] full = ["access_level", "album", "constants", "coverart", "ledger", "login_result", "song", "token", "types", "user", "util"]
auth = ["constants", "login_result", "register_result", "token", "user"] auth = ["constants", "login_result", "token", "user"]
access_level = ["constants"] access_level = ["constants"]
album = [] album = []
constants = [] constants = []
coverart = ["constants", "types"] coverart = ["constants", "types"]
ledger = ["constants", "song", "types", "user"] ledger = ["constants", "song", "types", "user"]
login_result = ["constants", "token", "user"] login_result = ["constants", "token", "user"]
register_result = []
song = ["constants", "types"] song = ["constants", "types"]
token = [] token = []
types = [] types = []
-1
View File
@@ -4,7 +4,6 @@ pub mod constants;
pub mod coverart; pub mod coverart;
pub mod ledger; pub mod ledger;
pub mod login_result; pub mod login_result;
pub mod playback_queue;
pub mod register_result; pub mod register_result;
pub mod song; pub mod song;
pub mod token; pub mod token;
-28
View File
@@ -1,28 +0,0 @@
use serde::{Deserialize, Serialize};
use utoipa::ToSchema;
/// Playback queue device type - Browser
pub const PLAYBACK_QUEUE_DEVICE_TYPE_BROWSER: &str = "BROWSER";
/// Playback queue device type - Mobile
pub const PLAYBACK_QUEUE_DEVICE_TYPE_MOBILE: &str = "MOBILE";
#[derive(Debug, Default, Deserialize, Serialize, ToSchema)]
pub struct PlaybackQueue {
pub id: uuid::Uuid,
pub name: String,
pub device_type: String,
pub user_id: uuid::Uuid,
#[serde(with = "time::serde::rfc3339::option")]
pub date_created: Option<time::OffsetDateTime>,
}
#[derive(Debug, Default, Deserialize, Serialize, ToSchema)]
pub struct PlaybackQueueItem {
pub id: uuid::Uuid,
pub queue_index: i32,
pub playback_queue_id: uuid::Uuid,
pub song_id: uuid::Uuid,
#[serde(with = "time::serde::rfc3339::option")]
pub date_created: Option<time::OffsetDateTime>,
}
+1 -5
View File
@@ -4,9 +4,5 @@ use serde::{Deserialize, Serialize};
pub struct RegisterResult { pub struct RegisterResult {
pub id: uuid::Uuid, pub id: uuid::Uuid,
pub username: String, pub username: String,
pub email: String, pub date_created: Option<time::OffsetDateTime>
pub firstname: String,
pub lastname: String,
#[serde(with = "time::serde::rfc3339::option")]
pub date_created: Option<time::OffsetDateTime>,
} }