client-api: Make fields of doc(hidden) structs private

This commit is contained in:
Jonas Platte 2021-09-27 13:30:17 +02:00
parent 8f88386125
commit 5d36a97b59
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -519,10 +519,10 @@ impl<'a> FallbackAcknowledgement<'a> {
#[non_exhaustive] #[non_exhaustive]
pub struct CustomAuthData<'a> { pub struct CustomAuthData<'a> {
#[serde(rename = "type")] #[serde(rename = "type")]
pub auth_type: &'a str, auth_type: &'a str,
pub session: Option<&'a str>, session: Option<&'a str>,
#[serde(flatten)] #[serde(flatten)]
pub extra: JsonObject, extra: JsonObject,
} }
#[doc(hidden)] #[doc(hidden)]
@ -530,10 +530,10 @@ pub struct CustomAuthData<'a> {
#[non_exhaustive] #[non_exhaustive]
pub struct IncomingCustomAuthData { pub struct IncomingCustomAuthData {
#[serde(rename = "type")] #[serde(rename = "type")]
pub auth_type: String, auth_type: String,
pub session: Option<String>, session: Option<String>,
#[serde(flatten)] #[serde(flatten)]
pub extra: JsonObject, extra: JsonObject,
} }
impl Outgoing for CustomAuthData<'_> { impl Outgoing for CustomAuthData<'_> {