From 4020ecc6a7b70b71b197ac9a41305c3bf6b6adcf Mon Sep 17 00:00:00 2001 From: Christopher Davis Date: Tue, 30 Apr 2019 12:41:04 -0400 Subject: [PATCH] account: Properly mark nullable source fields Privacy and note are both nullable according to https://source.joinmastodon.org/mastodon/docs/blob/master/content/en/api/entities.md#source --- src/entities/account.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/entities/account.rs b/src/entities/account.rs index 5ba4c27..e535e7e 100644 --- a/src/entities/account.rs +++ b/src/entities/account.rs @@ -70,10 +70,10 @@ impl MetadataField { /// An extra object given from `verify_credentials` giving defaults about a user #[derive(Debug, Clone, Deserialize, PartialEq)] pub struct Source { - privacy: status_builder::Visibility, + privacy: Option, #[serde(deserialize_with = "string_or_bool")] sensitive: bool, - note: String, + note: Option, fields: Option>, }