client-api: Add ErrorKind::CannotLeaveServerNoticeRoom

This commit is contained in:
Jonas Platte 2020-08-17 23:56:45 +02:00
parent 674f2eeb8b
commit 6b25e9a90c
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67

View File

@ -180,6 +180,11 @@ pub enum ErrorKind {
/// A URI giving a contact method for the server administrator. /// A URI giving a contact method for the server administrator.
admin_contact: String, admin_contact: String,
}, },
/// M_CANNOT_LEAVE_SERVER_NOTICE_ROOM
#[serde(rename = "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM")]
#[strum(to_string = "M_CANNOT_LEAVE_SERVER_NOTICE_ROOM")]
CannotLeaveServerNoticeRoom,
} }
/// A Matrix Error without a status code /// A Matrix Error without a status code