1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
use super::Visibility;
use serde::Deserialize;
#[derive(Deserialize, Debug)]
#[cfg_attr(test, derive(serde::Serialize))]
pub struct UpdateEvent {
/// Whether the user has the overlay enabled or disabled. If the overlay
/// is disabled, all the functionality of the SDK will still work. The
/// calls will instead focus the Discord client and show the modal there
/// instead of in application.
pub enabled: bool,
/// Whether the overlay is visible or not.
#[serde(rename = "locked")]
pub visible: Visibility,
}
#[derive(Debug)]
pub enum OverlayEvent {
Update(UpdateEvent),
}