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

master
Paul Woolcock 6 years ago
parent 3330a26760
commit 35a603f193
  1. 4
      src/entities/attachment.rs

@ -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.

Loading…
Cancel
Save