mirror of https://github.com/LemmyNet/lemmy.git
Fixing empty req issue. (#2849)
* Fixing empty req issue. * Forgot skip serializing none.try_diesel_ci_fix_1
parent
d63b1ba935
commit
32a5567cbf
|
@ -51,11 +51,14 @@ pub struct Register {
|
|||
pub answer: Option<String>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
|
||||
#[cfg_attr(feature = "full", derive(TS))]
|
||||
#[cfg_attr(feature = "full", ts(export))]
|
||||
/// Fetches a Captcha item.
|
||||
pub struct GetCaptcha {}
|
||||
pub struct GetCaptcha {
|
||||
pub auth: Option<Sensitive<String>>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
|
|
@ -304,11 +304,14 @@ pub struct GetSiteResponse {
|
|||
pub custom_emojis: Vec<CustomEmojiView>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
#[cfg_attr(feature = "full", derive(TS))]
|
||||
#[cfg_attr(feature = "full", ts(export))]
|
||||
/// Fetches the federated instances for your site.
|
||||
pub struct GetFederatedInstances {}
|
||||
pub struct GetFederatedInstances {
|
||||
pub auth: Option<Sensitive<String>>,
|
||||
}
|
||||
|
||||
#[skip_serializing_none]
|
||||
#[derive(Debug, Serialize, Deserialize, Clone)]
|
||||
|
|
Loading…
Reference in New Issue