useserde::{Deserialize, Serialize};usecrate::packet::message::UIResponse;#[derive(Serialize, Deserialize, Debug, Clone)]/// A message to request a logout from the core
pubstructLogout{}implUIResponse{/// Implement UiEvent for ChatFromViewer to allow it to be sent from the UI to the core
pubfnnew_logout()->Self{UIResponse::Logout(Logout {})}}