forked from MightyPork/elefren-fork
Initial commit
This commit is contained in:
@@ -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,
|
||||
}
|
||||
Reference in New Issue
Block a user