pub struct UserNotifyProps {
pub email: Option<String>,
pub push: Option<String>,
pub desktop: Option<String>,
pub desktop_sound: Option<String>,
pub mention_keys: Option<String>,
pub channel: Option<String>,
pub first_name: Option<String>,
}
Fields§
§email: Option<String>
Set to "true" to enable email notifications, "false" to disable. Defaults to "true".
push: Option<String>
Set to "all" to receive push notifications for all activity, "mention" for mentions and direct messages only, and "none" to disable. Defaults to "mention".
desktop: Option<String>
Set to "all" to receive desktop notifications for all activity, "mention" for mentions and direct messages only, and "none" to disable. Defaults to "all".
desktop_sound: Option<String>
Set to "true" to enable sound on desktop notifications, "false" to disable. Defaults to "true".
mention_keys: Option<String>
A comma-separated list of words to count as mentions. Defaults to username and @username.
channel: Option<String>
Set to "true" to enable channel-wide notifications (@channel, @all, etc.), "false" to disable. Defaults to "true".
first_name: Option<String>
Set to "true" to enable mentions for first name. Defaults to "true" if a first name is set, "false" otherwise.
Implementations§
Source§impl UserNotifyProps
impl UserNotifyProps
pub fn new() -> UserNotifyProps
Trait Implementations§
Source§impl Clone for UserNotifyProps
impl Clone for UserNotifyProps
Source§fn clone(&self) -> UserNotifyProps
fn clone(&self) -> UserNotifyProps
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more