These are not always present, make them Option<>s

This commit is contained in:
Paul Woolcock
2018-08-24 05:08:52 -04:00
parent 3330a26760
commit 35a603f193
+2 -2
View File
@@ -40,9 +40,9 @@ pub struct ImageDetails {
/// height of attachment.
height: u64,
/// A string of `widthxheight`.
size: String,
size: Option<String>,
/// The aspect ratio of the attachment.
aspect: f64,
aspect: Option<f64>,
}
/// The type of media attachment.