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
This commit is contained in:
committed by
Paul Woolcock
parent
ec3148e926
commit
4020ecc6a7
@@ -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>>,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user