use serde::{Deserialize, Serialize};
use crate::messages::ui::ui_messages::UIResponse;
#[derive(Serialize, Deserialize, Debug, Clone)]
/// A message to request a logout from the core
pub struct Logout {}
impl UIResponse {
/// Implement UiEvent for ChatFromViewer to allow it to be sent from the UI to the core
pub fn new_logout() -> Self {
UIResponse::Logout(Logout {})
}
}