client-api: Remove PartialEq and Eq for most types in get_login_types
This commit is contained in:
parent
672422e742
commit
47d6b45857
@ -48,7 +48,7 @@ impl Response {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// An authentication mechanism.
|
/// An authentication mechanism.
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Serialize)]
|
#[derive(Clone, Debug, Serialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[serde(untagged)]
|
#[serde(untagged)]
|
||||||
pub enum LoginType {
|
pub enum LoginType {
|
||||||
@ -117,7 +117,7 @@ impl LoginType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The payload for password login.
|
/// The payload for password login.
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[serde(tag = "type", rename = "m.login.password")]
|
#[serde(tag = "type", rename = "m.login.password")]
|
||||||
pub struct PasswordLoginType {}
|
pub struct PasswordLoginType {}
|
||||||
@ -130,7 +130,7 @@ impl PasswordLoginType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The payload for token-based login.
|
/// The payload for token-based login.
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[serde(tag = "type", rename = "m.login.token")]
|
#[serde(tag = "type", rename = "m.login.token")]
|
||||||
pub struct TokenLoginType {}
|
pub struct TokenLoginType {}
|
||||||
@ -143,7 +143,7 @@ impl TokenLoginType {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// The payload for SSO login.
|
/// The payload for SSO login.
|
||||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[serde(tag = "type", rename = "m.login.sso")]
|
#[serde(tag = "type", rename = "m.login.sso")]
|
||||||
pub struct SsoLoginType {
|
pub struct SsoLoginType {
|
||||||
@ -172,7 +172,7 @@ impl SsoLoginType {
|
|||||||
#[cfg(feature = "unstable-pre-spec")]
|
#[cfg(feature = "unstable-pre-spec")]
|
||||||
#[cfg_attr(docsrs, doc(cfg(feature = "unstable-pre-spec")))]
|
#[cfg_attr(docsrs, doc(cfg(feature = "unstable-pre-spec")))]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
pub struct IdentityProvider {
|
pub struct IdentityProvider {
|
||||||
/// The ID of the provider.
|
/// The ID of the provider.
|
||||||
id: String,
|
id: String,
|
||||||
@ -239,7 +239,7 @@ pub enum IdentityProviderBrand {
|
|||||||
|
|
||||||
/// A custom login payload.
|
/// A custom login payload.
|
||||||
#[doc(hidden)]
|
#[doc(hidden)]
|
||||||
#[derive(Clone, Debug, PartialEq, Eq, Deserialize, Serialize)]
|
#[derive(Clone, Debug, Deserialize, Serialize)]
|
||||||
pub struct CustomLoginType {
|
pub struct CustomLoginType {
|
||||||
/// A custom type
|
/// A custom type
|
||||||
///
|
///
|
||||||
|
Loading…
x
Reference in New Issue
Block a user