mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-23 03:37:53 +01:00
52 lines
876 B
Rust
52 lines
876 B
Rust
use serde::Serialize;
|
|
|
|
#[derive(Clone, Debug, Serialize)]
|
|
pub enum TwitchType {
|
|
Channel,
|
|
Video,
|
|
Clip,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize)]
|
|
pub enum LightspeedType {
|
|
Channel,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize)]
|
|
pub enum BandcampType {
|
|
Album,
|
|
Track,
|
|
}
|
|
|
|
#[derive(Clone, Debug, Serialize)]
|
|
#[serde(tag = "type")]
|
|
pub enum Special {
|
|
None,
|
|
GIF,
|
|
YouTube {
|
|
id: String,
|
|
|
|
#[serde(skip_serializing_if = "Option::is_none")]
|
|
timestamp: Option<String>,
|
|
},
|
|
Lightspeed {
|
|
content_type: LightspeedType,
|
|
id: String,
|
|
},
|
|
Twitch {
|
|
content_type: TwitchType,
|
|
id: String,
|
|
},
|
|
Spotify {
|
|
content_type: String,
|
|
id: String,
|
|
},
|
|
Soundcloud,
|
|
Bandcamp {
|
|
content_type: BandcampType,
|
|
id: String,
|
|
},
|
|
Streamable {
|
|
id: String,
|
|
},
|
|
}
|