mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-10-01 01:36:12 -04:00
Fixing empty req issue. (#2849)
* Fixing empty req issue. * Forgot skip serializing none.
This commit is contained in:
parent
ae75f89995
commit
d8041ca506
@ -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 {
|
||||
|
@ -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>,
|
||||
|
Loading…
Reference in New Issue
Block a user