diff options
Diffstat (limited to 'src/emotes.rs')
| -rw-r--r-- | src/emotes.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/emotes.rs b/src/emotes.rs index 79534e7..7242f82 100644 --- a/src/emotes.rs +++ b/src/emotes.rs @@ -1,4 +1,12 @@ use reqwest::Error; +use serde::{Deserialize, Serialize}; + +#[derive(Deserialize, Serialize, Clone, Debug)] +pub struct Emote { + pub id: String, + pub code: String, + pub original_code: Option<String>, +} pub trait RetrieveEmoteAPI<T> { async fn get_channel_emotes(&self, channel_login: &str) -> Result<Vec<T>, Error>; |
