Skip to content

Commit

Permalink
fix native response image url
Browse files Browse the repository at this point in the history
  • Loading branch information
TvoroG committed Feb 12, 2021
1 parent a19ed74 commit 7537e16
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/native/v1_2/response/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@ use serde_utils;

#[derive(Serialize, Deserialize, Debug, Clone, PartialEq)]
pub struct Image {
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
pub url: String,

#[serde(rename = "w", skip_serializing_if = "Option::is_none")]
pub width: Option<u32>,
Expand Down

0 comments on commit 7537e16

Please sign in to comment.