Initial commit

This commit is contained in:
Aaron Power
2017-04-10 18:00:07 +01:00
commit 36ae371beb
19 changed files with 685 additions and 0 deletions
+20
View File
@@ -0,0 +1,20 @@
#[derive(Debug, Clone, Deserialize)]
pub struct Attachment {
pub id: u64,
#[serde(rename="type")]
pub media_type: MediaType,
pub url: String,
pub remote_url: String,
pub preview_url: String,
pub text_url: String,
}
#[derive(Debug, Deserialize, Clone, Copy)]
pub enum MediaType {
#[serde(rename = "image")]
Image,
#[serde(rename = "video")]
Video,
#[serde(rename = "gifv")]
Gifv,
}