From 1fb3d168430ca49d963d5fa7c3e87680327714cf Mon Sep 17 00:00:00 2001 From: Aaron Power Date: Sun, 23 Apr 2017 00:30:56 +0100 Subject: [PATCH] Fixed website not being nullable, added static version of urls --- Cargo.toml | 2 +- src/entities/account.rs | 2 ++ src/entities/status.rs | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 324f7d9..ea63a2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "mammut" -version = "0.5.1" +version = "0.5.2" description = "A wrapper around the Mastodon API." authors = ["Aaron Power "] license = "MIT/Apache-2.0" diff --git a/src/entities/account.rs b/src/entities/account.rs index 57ed9aa..a52f6c8 100644 --- a/src/entities/account.rs +++ b/src/entities/account.rs @@ -8,7 +8,9 @@ pub struct Account { pub note: String, pub url: String, pub avatar: String, + pub avatar_static: String, pub header: String, + pub header_static: String, pub locked: bool, pub created_at: DateTime, pub followers_count: u64, diff --git a/src/entities/status.rs b/src/entities/status.rs index 2a69228..720ba59 100644 --- a/src/entities/status.rs +++ b/src/entities/status.rs @@ -43,5 +43,5 @@ pub struct Tag { #[derive(Debug, Clone, Deserialize)] pub struct Application { pub name: String, - pub website: String, + pub website: Option, }