mirror of https://github.com/MedzikUser/imgurs
album_title can be null. account_id can be a string or a number
This commit is contained in:
parent
d29b299a4b
commit
b6e715accf
|
@ -18,7 +18,7 @@ pub struct AlbumInfoData {
|
||||||
/// Album ID
|
/// Album ID
|
||||||
pub id: String,
|
pub id: String,
|
||||||
/// Title of the album
|
/// Title of the album
|
||||||
pub title: String,
|
pub title: Option<String>,
|
||||||
/// Description of the album
|
/// Description of the album
|
||||||
pub description: Option<String>,
|
pub description: Option<String>,
|
||||||
pub datetime: i64,
|
pub datetime: i64,
|
||||||
|
@ -27,7 +27,7 @@ pub struct AlbumInfoData {
|
||||||
pub cover_width: i64,
|
pub cover_width: i64,
|
||||||
pub cover_height: i64,
|
pub cover_height: i64,
|
||||||
pub account_url: Option<String>,
|
pub account_url: Option<String>,
|
||||||
pub account_id: Option<String>,
|
pub account_id: Option<AccountId>,
|
||||||
pub privacy: String,
|
pub privacy: String,
|
||||||
pub layout: String,
|
pub layout: String,
|
||||||
pub views: i64,
|
pub views: i64,
|
||||||
|
@ -45,6 +45,13 @@ pub struct AlbumInfoData {
|
||||||
pub ad_config: AdConfig,
|
pub ad_config: AdConfig,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
|
||||||
|
#[serde(untagged)]
|
||||||
|
pub enum AccountId {
|
||||||
|
String(String),
|
||||||
|
Int(i64),
|
||||||
|
}
|
||||||
|
|
||||||
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
|
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq, Clone)]
|
||||||
pub struct AdConfig {
|
pub struct AdConfig {
|
||||||
#[serde(rename = "safeFlags")]
|
#[serde(rename = "safeFlags")]
|
||||||
|
|
Loading…
Reference in New Issue