client-api: Add soft_logout field to ErrorKind::UnknownToken
This commit is contained in:
parent
578f6c8925
commit
b5e660893e
@ -20,7 +20,14 @@ pub enum ErrorKind {
|
||||
/// M_UNKNOWN_TOKEN
|
||||
#[serde(rename = "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
|
||||
#[serde(rename = "M_MISSING_TOKEN")]
|
||||
|
Loading…
x
Reference in New Issue
Block a user