Solstice client.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

29 lines
549 B

use room;
#[derive(Debug, RustcDecodable, RustcEncodable)]
pub enum Response {
LoginStatusResponse(LoginStatusResponse),
RoomListResponse(RoomListResponse),
}
#[derive(Debug, RustcDecodable, RustcEncodable)]
pub enum LoginStatusResponse {
Pending {
username: String,
},
Success {
username: String,
motd: String,
},
Failure {
username: String,
reason: String,
}
}
#[derive(Debug, RustcDecodable, RustcEncodable)]
pub struct RoomListResponse {
rooms: Vec<room::Room>,
}