client-api: Add soft_logout field to ErrorKind::UnknownToken

This commit is contained in:
Jonas Platte 2020-08-17 23:45:38 +02:00
parent 578f6c8925
commit b5e660893e
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -20,7 +20,14 @@ pub enum ErrorKind {
/// M_UNKNOWN_TOKEN /// M_UNKNOWN_TOKEN
#[serde(rename = "M_UNKNOWN_TOKEN")] #[serde(rename = "M_UNKNOWN_TOKEN")]
#[strum(to_string = "M_UNKNOWN_TOKEN")] #[strum(to_string = "M_UNKNOWN_TOKEN")]
UnknownToken, UnknownToken {
/// If this is `true`, the client can acquire a new access token by specifying the device ID
/// it is already using to the login API. For more information, see [the spec].
///
/// [the spec]: https://matrix.org/docs/spec/client_server/r0.6.1#soft-logout
#[serde(default, skip_serializing_if = "ruma_serde::is_default")]
soft_logout: bool,
},
/// M_MISSING_TOKEN /// M_MISSING_TOKEN
#[serde(rename = "M_MISSING_TOKEN")] #[serde(rename = "M_MISSING_TOKEN")]