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
master
Christopher Davis 6 years ago committed by Paul Woolcock
parent ec3148e926
commit 4020ecc6a7
  1. 4
      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<status_builder::Visibility>,
#[serde(deserialize_with = "string_or_bool")]
sensitive: bool,
note: String,
note: Option<String>,
fields: Option<Vec<MetadataField>>,
}

Loading…
Cancel
Save