Struct discord_sdk::overlay::events::UpdateEvent
source · pub struct UpdateEvent {
pub enabled: bool,
pub visible: Visibility,
}
Fields§
§enabled: bool
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.
visible: Visibility
Whether the overlay is visible or not.
Trait Implementations§
source§impl Debug for UpdateEvent
impl Debug for UpdateEvent
source§impl<'de> Deserialize<'de> for UpdateEvent
impl<'de> Deserialize<'de> for UpdateEvent
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl RefUnwindSafe for UpdateEvent
impl Send for UpdateEvent
impl Sync for UpdateEvent
impl Unpin for UpdateEvent
impl UnwindSafe for UpdateEvent
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more