Struct discord_sdk::overlay::events::UpdateEvent [−][src]
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
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more