mirror of
https://codeberg.org/ashley/poke.git
synced 2024-12-02 14:28:17 +01:00
53 lines
876 B
Rust
53 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,
|
||
|
},
|
||
|
}
|