Fixing empty req issue. (#2849)

* Fixing empty req issue.

* Forgot skip serializing none.
This commit is contained in:
Dessalines 2023-05-11 15:20:45 -04:00 committed by Felix Ableitner
parent ae75f89995
commit d8041ca506
2 changed files with 17 additions and 1 deletions

View File

@ -35,7 +35,9 @@ pub struct Register {
}
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
pub struct GetCaptcha {}
pub struct GetCaptcha {
pub auth: Option<Sensitive<String>>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
pub struct GetCaptchaResponse {

View File

@ -223,6 +223,20 @@ pub struct GetSiteResponse {
}
#[derive(Debug, Serialize, Deserialize, Clone)]
/// Fetches the federated instances for your site.
pub struct GetFederatedInstances {
pub auth: Option<Sensitive<String>>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
/// A response of federated instances.
pub struct GetFederatedInstancesResponse {
/// Optional, because federation may be disabled.
pub federated_instances: Option<FederatedInstances>,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
/// Your user info.
pub struct MyUserInfo {
pub local_user_view: LocalUserSettingsView,
pub follows: Vec<CommunityFollowerView>,