//! Common types for the [presence module][presence].
//!//! [presence]: https://matrix.org/docs/spec/client_server/r0.6.1#id62
useruma_serde::StringEnum;/// A description of a user's connectivity and availability for chat.
#[derive(Clone, Debug, PartialEq, Eq, StringEnum)]#[ruma_enum(rename_all ="snake_case")]pubenumPresenceState{/// Disconnected from the service.
Offline,/// Connected to the service.
Online,/// Connected to the service but not available for chat.
Unavailable,#[doc(hidden)]
_Custom(String),}implDefault forPresenceState{fndefault()->Self{Self::Online
}}implDefault for&'_ PresenceState{fndefault()->Self{&PresenceState::Online
}}