Compare commits
3
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d515dd4f9a | ||
|
|
4153157cf3 | ||
|
|
9319d25344 |
No files matched your search
+1
-2
@@ -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 = []
|
||||||
|
|||||||
@@ -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;
|
||||||
|
|||||||
@@ -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>,
|
|
||||||
}
|
|
||||||
|
|
||||||
Reference in new issue
Block a user