pub struct UserSettings { /* private fields */ }Expand description
Represents the user’s personal settings.
Changes: Removed dense_mode setting in Zulip 10.0 (feature level 364) as we now have web_font_size_px and web_line_height_percent settings for more control. New in Zulip 5.0 (feature level 89). Previously, these settings appeared in the top-level object, where they are available for clients without the user_settings_object client capability for backwards-compatibility.
Modified from openapi-generator-cli output:
$ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec/*
* Zulip REST API
*
* Powerful open source group chat
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://openapi-generator.tech
*/See zerver/openapi/zulip.yaml for the original OpenAPI configuration.
Configuration slightly modified to work with the Rust generator of openapi-generator-cli.
Implementations§
Source§impl UserSettings
impl UserSettings
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new UserSettings.
Source§impl UserSettings
impl UserSettings
Sourcepub const fn twenty_four_hour_time(&self) -> Option<bool>
pub const fn twenty_four_hour_time(&self) -> Option<bool>
Gets the UserSettings twenty_four_hour_time.
Whether time should be displayed in 24-hour notation.
A null value indicates that the client should use the default time format for the user’s locale.
Changes: Prior to Zulip 11.0 (feature level 408),
null was not a valid value for this setting.
Note that it was not possible to actually set the time format to null at this feature level.
Sourcepub fn set_twenty_four_hour_time(&mut self, val: bool)
pub fn set_twenty_four_hour_time(&mut self, val: bool)
Sets the UserSettings twenty_four_hour_time.
Whether time should be displayed in 24-hour notation.
A null value indicates that the client should use the default time format for the user’s locale.
Changes: Prior to Zulip 11.0 (feature level 408),
null was not a valid value for this setting.
Note that it was not possible to actually set the time format to null at this feature level.
Sourcepub fn unset_twenty_four_hour_time(&mut self) -> Option<bool>
pub fn unset_twenty_four_hour_time(&mut self) -> Option<bool>
Unsets the UserSettings twenty_four_hour_time.
Whether time should be displayed in 24-hour notation.
A null value indicates that the client should use the default time format for the user’s locale.
Changes: Prior to Zulip 11.0 (feature level 408),
null was not a valid value for this setting.
Note that it was not possible to actually set the time format to null at this feature level.
Sourcepub fn with_twenty_four_hour_time(self, val: bool) -> Self
pub fn with_twenty_four_hour_time(self, val: bool) -> Self
Builder function that sets the UserSettings twenty_four_hour_time.
Whether time should be displayed in 24-hour notation.
A null value indicates that the client should use the default time format for the user’s locale.
Changes: Prior to Zulip 11.0 (feature level 408),
null was not a valid value for this setting.
Note that it was not possible to actually set the time format to null at this feature level.
Sourcepub const fn web_mark_read_on_scroll_policy(
&self,
) -> Option<WebMarkReadOnScrollPolicy>
pub const fn web_mark_read_on_scroll_policy( &self, ) -> Option<WebMarkReadOnScrollPolicy>
Gets the UserSettings web_mark_read_on_scroll_policy.
Whether or not to mark messages as read when the user scrolls through their feed.
Sourcepub fn set_web_mark_read_on_scroll_policy(
&mut self,
val: WebMarkReadOnScrollPolicy,
)
pub fn set_web_mark_read_on_scroll_policy( &mut self, val: WebMarkReadOnScrollPolicy, )
Sets the UserSettings web_mark_read_on_scroll_policy.
Whether or not to mark messages as read when the user scrolls through their feed.
Sourcepub fn unset_web_mark_read_on_scroll_policy(
&mut self,
) -> Option<WebMarkReadOnScrollPolicy>
pub fn unset_web_mark_read_on_scroll_policy( &mut self, ) -> Option<WebMarkReadOnScrollPolicy>
Unsets the UserSettings web_mark_read_on_scroll_policy.
Whether or not to mark messages as read when the user scrolls through their feed.
Sourcepub fn with_web_mark_read_on_scroll_policy(
self,
val: WebMarkReadOnScrollPolicy,
) -> Self
pub fn with_web_mark_read_on_scroll_policy( self, val: WebMarkReadOnScrollPolicy, ) -> Self
Builder function that sets the UserSettings web_mark_read_on_scroll_policy.
Whether or not to mark messages as read when the user scrolls through their feed.
Sourcepub const fn web_channel_default_view(&self) -> Option<WebChannelDefaultView>
pub const fn web_channel_default_view(&self) -> Option<WebChannelDefaultView>
Gets the UserSettings web_channel_default_view.
Web/desktop app setting controlling the default navigation behavior when clicking on a channel link.
Sourcepub fn set_web_channel_default_view(&mut self, val: WebChannelDefaultView)
pub fn set_web_channel_default_view(&mut self, val: WebChannelDefaultView)
Sets the UserSettings web_channel_default_view.
Web/desktop app setting controlling the default navigation behavior when clicking on a channel link.
Sourcepub fn unset_web_channel_default_view(
&mut self,
) -> Option<WebChannelDefaultView>
pub fn unset_web_channel_default_view( &mut self, ) -> Option<WebChannelDefaultView>
Unsets the UserSettings web_channel_default_view.
Web/desktop app setting controlling the default navigation behavior when clicking on a channel link.
Sourcepub fn with_web_channel_default_view(self, val: WebChannelDefaultView) -> Self
pub fn with_web_channel_default_view(self, val: WebChannelDefaultView) -> Self
Builder function that sets the UserSettings web_channel_default_view.
Web/desktop app setting controlling the default navigation behavior when clicking on a channel link.
Sourcepub const fn starred_message_counts(&self) -> Option<bool>
pub const fn starred_message_counts(&self) -> Option<bool>
Gets the UserSettings starred_message_counts.
Whether clients should display the number of starred messages.
Sourcepub fn set_starred_message_counts(&mut self, val: bool)
pub fn set_starred_message_counts(&mut self, val: bool)
Sets the UserSettings starred_message_counts.
Whether clients should display the number of starred messages.
Sourcepub fn unset_starred_message_counts(&mut self) -> Option<bool>
pub fn unset_starred_message_counts(&mut self) -> Option<bool>
Unsets the UserSettings starred_message_counts.
Whether clients should display the number of starred messages.
Sourcepub fn with_starred_message_counts(self, val: bool) -> Self
pub fn with_starred_message_counts(self, val: bool) -> Self
Builder function that sets the UserSettings starred_message_counts.
Whether clients should display the number of starred messages.
Sourcepub const fn receives_typing_notifications(&self) -> Option<bool>
pub const fn receives_typing_notifications(&self) -> Option<bool>
Gets the UserSettings receives_typing_notifications.
Whether the user is configured to receive typing notifications from other users.
The server will only deliver typing notifications events to users who for whom this is enabled.
Changes: New in Zulip 9.0 (feature level 253). Previously, there were only options to disable sending typing notifications.
Sourcepub fn set_receives_typing_notifications(&mut self, val: bool)
pub fn set_receives_typing_notifications(&mut self, val: bool)
Sets the UserSettings receives_typing_notifications.
Whether the user is configured to receive typing notifications from other users.
The server will only deliver typing notifications events to users who for whom this is enabled.
Changes: New in Zulip 9.0 (feature level 253). Previously, there were only options to disable sending typing notifications.
Sourcepub fn unset_receives_typing_notifications(&mut self) -> Option<bool>
pub fn unset_receives_typing_notifications(&mut self) -> Option<bool>
Unsets the UserSettings receives_typing_notifications.
Whether the user is configured to receive typing notifications from other users.
The server will only deliver typing notifications events to users who for whom this is enabled.
Changes: New in Zulip 9.0 (feature level 253). Previously, there were only options to disable sending typing notifications.
Sourcepub fn with_receives_typing_notifications(self, val: bool) -> Self
pub fn with_receives_typing_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings receives_typing_notifications.
Whether the user is configured to receive typing notifications from other users.
The server will only deliver typing notifications events to users who for whom this is enabled.
Changes: New in Zulip 9.0 (feature level 253). Previously, there were only options to disable sending typing notifications.
Sourcepub const fn web_suggest_update_timezone(&self) -> Option<bool>
pub const fn web_suggest_update_timezone(&self) -> Option<bool>
Gets the UserSettings web_suggest_update_timezone.
Whether the user should be shown an alert,
offering to update their profile time zone,
when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.
Changes: New in Zulip 10.0 (feature level 329).
Sourcepub fn set_web_suggest_update_timezone(&mut self, val: bool)
pub fn set_web_suggest_update_timezone(&mut self, val: bool)
Sets the UserSettings web_suggest_update_timezone.
Whether the user should be shown an alert,
offering to update their profile time zone,
when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.
Changes: New in Zulip 10.0 (feature level 329).
Sourcepub fn unset_web_suggest_update_timezone(&mut self) -> Option<bool>
pub fn unset_web_suggest_update_timezone(&mut self) -> Option<bool>
Unsets the UserSettings web_suggest_update_timezone.
Whether the user should be shown an alert,
offering to update their profile time zone,
when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.
Changes: New in Zulip 10.0 (feature level 329).
Sourcepub fn with_web_suggest_update_timezone(self, val: bool) -> Self
pub fn with_web_suggest_update_timezone(self, val: bool) -> Self
Builder function that sets the UserSettings web_suggest_update_timezone.
Whether the user should be shown an alert,
offering to update their profile time zone,
when the time displayed for the profile time zone differs from the current time displayed by the time zone configured on their device.
Changes: New in Zulip 10.0 (feature level 329).
Sourcepub const fn fluid_layout_width(&self) -> Option<bool>
pub const fn fluid_layout_width(&self) -> Option<bool>
Gets the UserSettings fluid_layout_width.
Whether to use the maximum available screen width for the web app’s center panel (message feed, recent conversations) on wide screens.
Sourcepub fn set_fluid_layout_width(&mut self, val: bool)
pub fn set_fluid_layout_width(&mut self, val: bool)
Sets the UserSettings fluid_layout_width.
Whether to use the maximum available screen width for the web app’s center panel (message feed, recent conversations) on wide screens.
Sourcepub fn unset_fluid_layout_width(&mut self) -> Option<bool>
pub fn unset_fluid_layout_width(&mut self) -> Option<bool>
Unsets the UserSettings fluid_layout_width.
Whether to use the maximum available screen width for the web app’s center panel (message feed, recent conversations) on wide screens.
Sourcepub fn with_fluid_layout_width(self, val: bool) -> Self
pub fn with_fluid_layout_width(self, val: bool) -> Self
Builder function that sets the UserSettings fluid_layout_width.
Whether to use the maximum available screen width for the web app’s center panel (message feed, recent conversations) on wide screens.
Sourcepub const fn high_contrast_mode(&self) -> Option<bool>
pub const fn high_contrast_mode(&self) -> Option<bool>
Gets the UserSettings high_contrast_mode.
This setting is reserved for use to control variations in Zulip’s design to help visually impaired users.
Sourcepub fn set_high_contrast_mode(&mut self, val: bool)
pub fn set_high_contrast_mode(&mut self, val: bool)
Sets the UserSettings high_contrast_mode.
This setting is reserved for use to control variations in Zulip’s design to help visually impaired users.
Sourcepub fn unset_high_contrast_mode(&mut self) -> Option<bool>
pub fn unset_high_contrast_mode(&mut self) -> Option<bool>
Unsets the UserSettings high_contrast_mode.
This setting is reserved for use to control variations in Zulip’s design to help visually impaired users.
Sourcepub fn with_high_contrast_mode(self, val: bool) -> Self
pub fn with_high_contrast_mode(self, val: bool) -> Self
Builder function that sets the UserSettings high_contrast_mode.
This setting is reserved for use to control variations in Zulip’s design to help visually impaired users.
Sourcepub const fn web_font_size_px(&self) -> Option<i32>
pub const fn web_font_size_px(&self) -> Option<i32>
Gets the UserSettings web_font_size_px.
User-configured primary font-size for the web application, in pixels.
Changes: New in Zulip 9.0 (feature level 245). Previously, font size was only adjustable via browser zoom. Note that this setting was not fully implemented at this feature level.
Sourcepub fn set_web_font_size_px(&mut self, val: i32)
pub fn set_web_font_size_px(&mut self, val: i32)
Sets the UserSettings web_font_size_px.
User-configured primary font-size for the web application, in pixels.
Changes: New in Zulip 9.0 (feature level 245). Previously, font size was only adjustable via browser zoom. Note that this setting was not fully implemented at this feature level.
Sourcepub fn unset_web_font_size_px(&mut self) -> Option<i32>
pub fn unset_web_font_size_px(&mut self) -> Option<i32>
Unsets the UserSettings web_font_size_px.
User-configured primary font-size for the web application, in pixels.
Changes: New in Zulip 9.0 (feature level 245). Previously, font size was only adjustable via browser zoom. Note that this setting was not fully implemented at this feature level.
Sourcepub fn with_web_font_size_px(self, val: i32) -> Self
pub fn with_web_font_size_px(self, val: i32) -> Self
Builder function that sets the UserSettings web_font_size_px.
User-configured primary font-size for the web application, in pixels.
Changes: New in Zulip 9.0 (feature level 245). Previously, font size was only adjustable via browser zoom. Note that this setting was not fully implemented at this feature level.
Sourcepub const fn web_line_height_percent(&self) -> Option<i32>
pub const fn web_line_height_percent(&self) -> Option<i32>
Gets the UserSettings web_line_height_percent.
User-configured primary line-height for the web application, in percent, so a value of 120 represents a line-height of 1.2.
Changes: New in Zulip 9.0 (feature level 245).
Previously, line height was not user-configurable.
Note that this setting was not fully implemented at this feature level.
Sourcepub fn set_web_line_height_percent(&mut self, val: i32)
pub fn set_web_line_height_percent(&mut self, val: i32)
Sets the UserSettings web_line_height_percent.
User-configured primary line-height for the web application, in percent, so a value of 120 represents a line-height of 1.2.
Changes: New in Zulip 9.0 (feature level 245).
Previously, line height was not user-configurable.
Note that this setting was not fully implemented at this feature level.
Sourcepub fn unset_web_line_height_percent(&mut self) -> Option<i32>
pub fn unset_web_line_height_percent(&mut self) -> Option<i32>
Unsets the UserSettings web_line_height_percent.
User-configured primary line-height for the web application, in percent, so a value of 120 represents a line-height of 1.2.
Changes: New in Zulip 9.0 (feature level 245).
Previously, line height was not user-configurable.
Note that this setting was not fully implemented at this feature level.
Sourcepub fn with_web_line_height_percent(self, val: i32) -> Self
pub fn with_web_line_height_percent(self, val: i32) -> Self
Builder function that sets the UserSettings web_line_height_percent.
User-configured primary line-height for the web application, in percent, so a value of 120 represents a line-height of 1.2.
Changes: New in Zulip 9.0 (feature level 245).
Previously, line height was not user-configurable.
Note that this setting was not fully implemented at this feature level.
Sourcepub const fn color_scheme(&self) -> Option<ColorScheme>
pub const fn color_scheme(&self) -> Option<ColorScheme>
Gets the UserSettings color_scheme.
Controls which color theme to use.
Sourcepub fn set_color_scheme(&mut self, val: ColorScheme)
pub fn set_color_scheme(&mut self, val: ColorScheme)
Sets the UserSettings color_scheme.
Controls which color theme to use.
Sourcepub fn unset_color_scheme(&mut self) -> Option<ColorScheme>
pub fn unset_color_scheme(&mut self) -> Option<ColorScheme>
Unsets the UserSettings color_scheme.
Controls which color theme to use.
Sourcepub fn with_color_scheme(self, val: ColorScheme) -> Self
pub fn with_color_scheme(self, val: ColorScheme) -> Self
Builder function that sets the UserSettings color_scheme.
Controls which color theme to use.
Sourcepub const fn translate_emoticons(&self) -> Option<bool>
pub const fn translate_emoticons(&self) -> Option<bool>
Gets the UserSettings translate_emoticons.
Whether to translate emoticons to emoji in messages the user sends.
Sourcepub fn set_translate_emoticons(&mut self, val: bool)
pub fn set_translate_emoticons(&mut self, val: bool)
Sets the UserSettings translate_emoticons.
Whether to translate emoticons to emoji in messages the user sends.
Sourcepub fn unset_translate_emoticons(&mut self) -> Option<bool>
pub fn unset_translate_emoticons(&mut self) -> Option<bool>
Unsets the UserSettings translate_emoticons.
Whether to translate emoticons to emoji in messages the user sends.
Sourcepub fn with_translate_emoticons(self, val: bool) -> Self
pub fn with_translate_emoticons(self, val: bool) -> Self
Builder function that sets the UserSettings translate_emoticons.
Whether to translate emoticons to emoji in messages the user sends.
Sourcepub const fn display_emoji_reaction_users(&self) -> Option<bool>
pub const fn display_emoji_reaction_users(&self) -> Option<bool>
Gets the UserSettings display_emoji_reaction_users.
Whether to display the names of reacting users on a message.
When enabled, clients should display the names of reacting users, rather than a count, for messages with few total reactions.
The ideal cutoff may depend on the space available for displaying reactions;
the official web application displays names when 3 or fewer total reactions are present with this setting enabled.
Changes: New in Zulip 6.0 (feature level 125).
Sourcepub fn set_display_emoji_reaction_users(&mut self, val: bool)
pub fn set_display_emoji_reaction_users(&mut self, val: bool)
Sets the UserSettings display_emoji_reaction_users.
Whether to display the names of reacting users on a message.
When enabled, clients should display the names of reacting users, rather than a count, for messages with few total reactions.
The ideal cutoff may depend on the space available for displaying reactions;
the official web application displays names when 3 or fewer total reactions are present with this setting enabled.
Changes: New in Zulip 6.0 (feature level 125).
Sourcepub fn unset_display_emoji_reaction_users(&mut self) -> Option<bool>
pub fn unset_display_emoji_reaction_users(&mut self) -> Option<bool>
Unsets the UserSettings display_emoji_reaction_users.
Whether to display the names of reacting users on a message.
When enabled, clients should display the names of reacting users, rather than a count, for messages with few total reactions.
The ideal cutoff may depend on the space available for displaying reactions;
the official web application displays names when 3 or fewer total reactions are present with this setting enabled.
Changes: New in Zulip 6.0 (feature level 125).
Sourcepub fn with_display_emoji_reaction_users(self, val: bool) -> Self
pub fn with_display_emoji_reaction_users(self, val: bool) -> Self
Builder function that sets the UserSettings display_emoji_reaction_users.
Whether to display the names of reacting users on a message.
When enabled, clients should display the names of reacting users, rather than a count, for messages with few total reactions.
The ideal cutoff may depend on the space available for displaying reactions;
the official web application displays names when 3 or fewer total reactions are present with this setting enabled.
Changes: New in Zulip 6.0 (feature level 125).
Sourcepub const fn web_home_view(&self) -> Option<WebHomeView>
pub const fn web_home_view(&self) -> Option<WebHomeView>
Gets the UserSettings web_home_view.
The home view used when opening a new Zulip web app window or hitting the Esc keyboard shortcut repeatedly.
Sourcepub fn set_web_home_view(&mut self, val: WebHomeView)
pub fn set_web_home_view(&mut self, val: WebHomeView)
Sets the UserSettings web_home_view.
The home view used when opening a new Zulip web app window or hitting the Esc keyboard shortcut repeatedly.
Sourcepub fn unset_web_home_view(&mut self) -> Option<WebHomeView>
pub fn unset_web_home_view(&mut self) -> Option<WebHomeView>
Unsets the UserSettings web_home_view.
The home view used when opening a new Zulip web app window or hitting the Esc keyboard shortcut repeatedly.
Sourcepub fn with_web_home_view(self, val: WebHomeView) -> Self
pub fn with_web_home_view(self, val: WebHomeView) -> Self
Builder function that sets the UserSettings web_home_view.
The home view used when opening a new Zulip web app window or hitting the Esc keyboard shortcut repeatedly.
Gets the UserSettings web_escape_navigates_to_home_view.
Whether the escape key navigates to the configured home view.
Changes: New in Zulip 8.0 (feature level 219). Previously, this was called escape_navigates_to_default_view, which was new in Zulip 5.0 (feature level 107).
Sets the UserSettings web_escape_navigates_to_home_view.
Whether the escape key navigates to the configured home view.
Changes: New in Zulip 8.0 (feature level 219). Previously, this was called escape_navigates_to_default_view, which was new in Zulip 5.0 (feature level 107).
Unsets the UserSettings web_escape_navigates_to_home_view.
Whether the escape key navigates to the configured home view.
Changes: New in Zulip 8.0 (feature level 219). Previously, this was called escape_navigates_to_default_view, which was new in Zulip 5.0 (feature level 107).
Builder function that sets the UserSettings web_escape_navigates_to_home_view.
Whether the escape key navigates to the configured home view.
Changes: New in Zulip 8.0 (feature level 219). Previously, this was called escape_navigates_to_default_view, which was new in Zulip 5.0 (feature level 107).
Sourcepub const fn left_side_userlist(&self) -> Option<bool>
pub const fn left_side_userlist(&self) -> Option<bool>
Gets the UserSettings left_side_userlist.
Whether the users list on left sidebar in narrow windows.
This feature is not heavily used and is likely to be reworked.
Sourcepub fn set_left_side_userlist(&mut self, val: bool)
pub fn set_left_side_userlist(&mut self, val: bool)
Sets the UserSettings left_side_userlist.
Whether the users list on left sidebar in narrow windows.
This feature is not heavily used and is likely to be reworked.
Sourcepub fn unset_left_side_userlist(&mut self) -> Option<bool>
pub fn unset_left_side_userlist(&mut self) -> Option<bool>
Unsets the UserSettings left_side_userlist.
Whether the users list on left sidebar in narrow windows.
This feature is not heavily used and is likely to be reworked.
Sourcepub fn with_left_side_userlist(self, val: bool) -> Self
pub fn with_left_side_userlist(self, val: bool) -> Self
Builder function that sets the UserSettings left_side_userlist.
Whether the users list on left sidebar in narrow windows.
This feature is not heavily used and is likely to be reworked.
Sourcepub const fn emojiset(&self) -> Option<Emojiset>
pub const fn emojiset(&self) -> Option<Emojiset>
Gets the UserSettings emojiset.
The user’s configured emoji set, used to display emoji to the user everywhere they appear in the UI.
Sourcepub fn set_emojiset(&mut self, val: Emojiset)
pub fn set_emojiset(&mut self, val: Emojiset)
Sets the UserSettings emojiset.
The user’s configured emoji set, used to display emoji to the user everywhere they appear in the UI.
Sourcepub fn unset_emojiset(&mut self) -> Option<Emojiset>
pub fn unset_emojiset(&mut self) -> Option<Emojiset>
Unsets the UserSettings emojiset.
The user’s configured emoji set, used to display emoji to the user everywhere they appear in the UI.
Sourcepub fn with_emojiset(self, val: Emojiset) -> Self
pub fn with_emojiset(self, val: Emojiset) -> Self
Builder function that sets the UserSettings emojiset.
The user’s configured emoji set, used to display emoji to the user everywhere they appear in the UI.
Sourcepub const fn demote_inactive_streams(&self) -> Option<DemoteInactiveStreams>
pub const fn demote_inactive_streams(&self) -> Option<DemoteInactiveStreams>
Gets the UserSettings demote_inactive_streams.
Whether to hide inactive channels in the left sidebar.
Sourcepub fn set_demote_inactive_streams(&mut self, val: DemoteInactiveStreams)
pub fn set_demote_inactive_streams(&mut self, val: DemoteInactiveStreams)
Sets the UserSettings demote_inactive_streams.
Whether to hide inactive channels in the left sidebar.
Sourcepub fn unset_demote_inactive_streams(&mut self) -> Option<DemoteInactiveStreams>
pub fn unset_demote_inactive_streams(&mut self) -> Option<DemoteInactiveStreams>
Unsets the UserSettings demote_inactive_streams.
Whether to hide inactive channels in the left sidebar.
Sourcepub fn with_demote_inactive_streams(self, val: DemoteInactiveStreams) -> Self
pub fn with_demote_inactive_streams(self, val: DemoteInactiveStreams) -> Self
Builder function that sets the UserSettings demote_inactive_streams.
Whether to hide inactive channels in the left sidebar.
Sourcepub const fn user_list_style(&self) -> Option<UserListStyle>
pub const fn user_list_style(&self) -> Option<UserListStyle>
Gets the UserSettings user_list_style.
The style selected by the user for the right sidebar user list.
Sourcepub fn set_user_list_style(&mut self, val: UserListStyle)
pub fn set_user_list_style(&mut self, val: UserListStyle)
Sets the UserSettings user_list_style.
The style selected by the user for the right sidebar user list.
Sourcepub fn unset_user_list_style(&mut self) -> Option<UserListStyle>
pub fn unset_user_list_style(&mut self) -> Option<UserListStyle>
Unsets the UserSettings user_list_style.
The style selected by the user for the right sidebar user list.
Sourcepub fn with_user_list_style(self, val: UserListStyle) -> Self
pub fn with_user_list_style(self, val: UserListStyle) -> Self
Builder function that sets the UserSettings user_list_style.
The style selected by the user for the right sidebar user list.
Sourcepub const fn web_animate_image_previews(
&self,
) -> Option<WebAnimateImagePreviews>
pub const fn web_animate_image_previews( &self, ) -> Option<WebAnimateImagePreviews>
Gets the UserSettings web_animate_image_previews.
Controls how animated images should be played in the message feed in the web/desktop application.
Sourcepub fn set_web_animate_image_previews(&mut self, val: WebAnimateImagePreviews)
pub fn set_web_animate_image_previews(&mut self, val: WebAnimateImagePreviews)
Sets the UserSettings web_animate_image_previews.
Controls how animated images should be played in the message feed in the web/desktop application.
Sourcepub fn unset_web_animate_image_previews(
&mut self,
) -> Option<WebAnimateImagePreviews>
pub fn unset_web_animate_image_previews( &mut self, ) -> Option<WebAnimateImagePreviews>
Unsets the UserSettings web_animate_image_previews.
Controls how animated images should be played in the message feed in the web/desktop application.
Sourcepub fn with_web_animate_image_previews(
self,
val: WebAnimateImagePreviews,
) -> Self
pub fn with_web_animate_image_previews( self, val: WebAnimateImagePreviews, ) -> Self
Builder function that sets the UserSettings web_animate_image_previews.
Controls how animated images should be played in the message feed in the web/desktop application.
Sourcepub const fn web_stream_unreads_count_display_policy(
&self,
) -> Option<WebStreamUnreadsCountDisplayPolicy>
pub const fn web_stream_unreads_count_display_policy( &self, ) -> Option<WebStreamUnreadsCountDisplayPolicy>
Gets the UserSettings web_stream_unreads_count_display_policy.
Configuration for which channels should be displayed with a numeric unread count in the left sidebar.
Sourcepub fn set_web_stream_unreads_count_display_policy(
&mut self,
val: WebStreamUnreadsCountDisplayPolicy,
)
pub fn set_web_stream_unreads_count_display_policy( &mut self, val: WebStreamUnreadsCountDisplayPolicy, )
Sets the UserSettings web_stream_unreads_count_display_policy.
Configuration for which channels should be displayed with a numeric unread count in the left sidebar.
Sourcepub fn unset_web_stream_unreads_count_display_policy(
&mut self,
) -> Option<WebStreamUnreadsCountDisplayPolicy>
pub fn unset_web_stream_unreads_count_display_policy( &mut self, ) -> Option<WebStreamUnreadsCountDisplayPolicy>
Unsets the UserSettings web_stream_unreads_count_display_policy.
Configuration for which channels should be displayed with a numeric unread count in the left sidebar.
Sourcepub fn with_web_stream_unreads_count_display_policy(
self,
val: WebStreamUnreadsCountDisplayPolicy,
) -> Self
pub fn with_web_stream_unreads_count_display_policy( self, val: WebStreamUnreadsCountDisplayPolicy, ) -> Self
Builder function that sets the UserSettings web_stream_unreads_count_display_policy.
Configuration for which channels should be displayed with a numeric unread count in the left sidebar.
Sourcepub const fn hide_ai_features(&self) -> Option<bool>
pub const fn hide_ai_features(&self) -> Option<bool>
Gets the UserSettings hide_ai_features.
Controls whether user wants AI features like topic summarization to be hidden in all Zulip clients.
Changes: New in Zulip 10.0 (feature level 350).
Sourcepub fn set_hide_ai_features(&mut self, val: bool)
pub fn set_hide_ai_features(&mut self, val: bool)
Sets the UserSettings hide_ai_features.
Controls whether user wants AI features like topic summarization to be hidden in all Zulip clients.
Changes: New in Zulip 10.0 (feature level 350).
Sourcepub fn unset_hide_ai_features(&mut self) -> Option<bool>
pub fn unset_hide_ai_features(&mut self) -> Option<bool>
Unsets the UserSettings hide_ai_features.
Controls whether user wants AI features like topic summarization to be hidden in all Zulip clients.
Changes: New in Zulip 10.0 (feature level 350).
Sourcepub fn with_hide_ai_features(self, val: bool) -> Self
pub fn with_hide_ai_features(self, val: bool) -> Self
Builder function that sets the UserSettings hide_ai_features.
Controls whether user wants AI features like topic summarization to be hidden in all Zulip clients.
Changes: New in Zulip 10.0 (feature level 350).
Gets the UserSettings web_left_sidebar_show_channel_folders.
Determines whether the web/desktop application’s left sidebar displays any channel folders configured by the organization.
Changes: New in Zulip 11.0 (feature level 411).
Sets the UserSettings web_left_sidebar_show_channel_folders.
Determines whether the web/desktop application’s left sidebar displays any channel folders configured by the organization.
Changes: New in Zulip 11.0 (feature level 411).
Unsets the UserSettings web_left_sidebar_show_channel_folders.
Determines whether the web/desktop application’s left sidebar displays any channel folders configured by the organization.
Changes: New in Zulip 11.0 (feature level 411).
Builder function that sets the UserSettings web_left_sidebar_show_channel_folders.
Determines whether the web/desktop application’s left sidebar displays any channel folders configured by the organization.
Changes: New in Zulip 11.0 (feature level 411).
Gets the UserSettings web_left_sidebar_unreads_count_summary.
Determines whether the web/desktop application’s left sidebar displays the unread message count summary.
Changes: New in Zulip 11.0 (feature level 398).
Sets the UserSettings web_left_sidebar_unreads_count_summary.
Determines whether the web/desktop application’s left sidebar displays the unread message count summary.
Changes: New in Zulip 11.0 (feature level 398).
Unsets the UserSettings web_left_sidebar_unreads_count_summary.
Determines whether the web/desktop application’s left sidebar displays the unread message count summary.
Changes: New in Zulip 11.0 (feature level 398).
Builder function that sets the UserSettings web_left_sidebar_unreads_count_summary.
Determines whether the web/desktop application’s left sidebar displays the unread message count summary.
Changes: New in Zulip 11.0 (feature level 398).
Sourcepub const fn enter_sends(&self) -> Option<bool>
pub const fn enter_sends(&self) -> Option<bool>
Gets the UserSettings enter_sends.
Whether the user setting for sending on pressing Enter in the compose box is enabled.
Sourcepub fn set_enter_sends(&mut self, val: bool)
pub fn set_enter_sends(&mut self, val: bool)
Sets the UserSettings enter_sends.
Whether the user setting for sending on pressing Enter in the compose box is enabled.
Sourcepub fn unset_enter_sends(&mut self) -> Option<bool>
pub fn unset_enter_sends(&mut self) -> Option<bool>
Unsets the UserSettings enter_sends.
Whether the user setting for sending on pressing Enter in the compose box is enabled.
Sourcepub fn with_enter_sends(self, val: bool) -> Self
pub fn with_enter_sends(self, val: bool) -> Self
Builder function that sets the UserSettings enter_sends.
Whether the user setting for sending on pressing Enter in the compose box is enabled.
Sourcepub const fn enable_drafts_synchronization(&self) -> Option<bool>
pub const fn enable_drafts_synchronization(&self) -> Option<bool>
Gets the UserSettings enable_drafts_synchronization.
A boolean parameter to control whether synchronizing drafts is enabled for the user.
When synchronization is disabled, all drafts stored in the server will be automatically deleted from the server.
This does not do anything (like sending events) to delete local copies of drafts stored in clients.
Sourcepub fn set_enable_drafts_synchronization(&mut self, val: bool)
pub fn set_enable_drafts_synchronization(&mut self, val: bool)
Sets the UserSettings enable_drafts_synchronization.
A boolean parameter to control whether synchronizing drafts is enabled for the user.
When synchronization is disabled, all drafts stored in the server will be automatically deleted from the server.
This does not do anything (like sending events) to delete local copies of drafts stored in clients.
Sourcepub fn unset_enable_drafts_synchronization(&mut self) -> Option<bool>
pub fn unset_enable_drafts_synchronization(&mut self) -> Option<bool>
Unsets the UserSettings enable_drafts_synchronization.
A boolean parameter to control whether synchronizing drafts is enabled for the user.
When synchronization is disabled, all drafts stored in the server will be automatically deleted from the server.
This does not do anything (like sending events) to delete local copies of drafts stored in clients.
Sourcepub fn with_enable_drafts_synchronization(self, val: bool) -> Self
pub fn with_enable_drafts_synchronization(self, val: bool) -> Self
Builder function that sets the UserSettings enable_drafts_synchronization.
A boolean parameter to control whether synchronizing drafts is enabled for the user.
When synchronization is disabled, all drafts stored in the server will be automatically deleted from the server.
This does not do anything (like sending events) to delete local copies of drafts stored in clients.
Sourcepub const fn enable_stream_desktop_notifications(&self) -> Option<bool>
pub const fn enable_stream_desktop_notifications(&self) -> Option<bool>
Gets the UserSettings enable_stream_desktop_notifications.
Enable visual desktop notifications for channel messages.
Sourcepub fn set_enable_stream_desktop_notifications(&mut self, val: bool)
pub fn set_enable_stream_desktop_notifications(&mut self, val: bool)
Sets the UserSettings enable_stream_desktop_notifications.
Enable visual desktop notifications for channel messages.
Sourcepub fn unset_enable_stream_desktop_notifications(&mut self) -> Option<bool>
pub fn unset_enable_stream_desktop_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_stream_desktop_notifications.
Enable visual desktop notifications for channel messages.
Sourcepub fn with_enable_stream_desktop_notifications(self, val: bool) -> Self
pub fn with_enable_stream_desktop_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_stream_desktop_notifications.
Enable visual desktop notifications for channel messages.
Sourcepub const fn enable_stream_email_notifications(&self) -> Option<bool>
pub const fn enable_stream_email_notifications(&self) -> Option<bool>
Gets the UserSettings enable_stream_email_notifications.
Enable email notifications for channel messages.
Sourcepub fn set_enable_stream_email_notifications(&mut self, val: bool)
pub fn set_enable_stream_email_notifications(&mut self, val: bool)
Sets the UserSettings enable_stream_email_notifications.
Enable email notifications for channel messages.
Sourcepub fn unset_enable_stream_email_notifications(&mut self) -> Option<bool>
pub fn unset_enable_stream_email_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_stream_email_notifications.
Enable email notifications for channel messages.
Sourcepub fn with_enable_stream_email_notifications(self, val: bool) -> Self
pub fn with_enable_stream_email_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_stream_email_notifications.
Enable email notifications for channel messages.
Sourcepub const fn enable_stream_push_notifications(&self) -> Option<bool>
pub const fn enable_stream_push_notifications(&self) -> Option<bool>
Gets the UserSettings enable_stream_push_notifications.
Enable mobile notifications for channel messages.
Sourcepub fn set_enable_stream_push_notifications(&mut self, val: bool)
pub fn set_enable_stream_push_notifications(&mut self, val: bool)
Sets the UserSettings enable_stream_push_notifications.
Enable mobile notifications for channel messages.
Sourcepub fn unset_enable_stream_push_notifications(&mut self) -> Option<bool>
pub fn unset_enable_stream_push_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_stream_push_notifications.
Enable mobile notifications for channel messages.
Sourcepub fn with_enable_stream_push_notifications(self, val: bool) -> Self
pub fn with_enable_stream_push_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_stream_push_notifications.
Enable mobile notifications for channel messages.
Sourcepub const fn enable_stream_audible_notifications(&self) -> Option<bool>
pub const fn enable_stream_audible_notifications(&self) -> Option<bool>
Gets the UserSettings enable_stream_audible_notifications.
Enable audible desktop notifications for channel messages.
Sourcepub fn set_enable_stream_audible_notifications(&mut self, val: bool)
pub fn set_enable_stream_audible_notifications(&mut self, val: bool)
Sets the UserSettings enable_stream_audible_notifications.
Enable audible desktop notifications for channel messages.
Sourcepub fn unset_enable_stream_audible_notifications(&mut self) -> Option<bool>
pub fn unset_enable_stream_audible_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_stream_audible_notifications.
Enable audible desktop notifications for channel messages.
Sourcepub fn with_enable_stream_audible_notifications(self, val: bool) -> Self
pub fn with_enable_stream_audible_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_stream_audible_notifications.
Enable audible desktop notifications for channel messages.
Sourcepub const fn enable_desktop_notifications(&self) -> Option<bool>
pub const fn enable_desktop_notifications(&self) -> Option<bool>
Gets the UserSettings enable_desktop_notifications.
Enable visual desktop notifications for direct messages and @-mentions.
Sourcepub fn set_enable_desktop_notifications(&mut self, val: bool)
pub fn set_enable_desktop_notifications(&mut self, val: bool)
Sets the UserSettings enable_desktop_notifications.
Enable visual desktop notifications for direct messages and @-mentions.
Sourcepub fn unset_enable_desktop_notifications(&mut self) -> Option<bool>
pub fn unset_enable_desktop_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_desktop_notifications.
Enable visual desktop notifications for direct messages and @-mentions.
Sourcepub fn with_enable_desktop_notifications(self, val: bool) -> Self
pub fn with_enable_desktop_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_desktop_notifications.
Enable visual desktop notifications for direct messages and @-mentions.
Sourcepub const fn enable_sounds(&self) -> Option<bool>
pub const fn enable_sounds(&self) -> Option<bool>
Gets the UserSettings enable_sounds.
Enable audible desktop notifications for direct messages and @-mentions.
Sourcepub fn set_enable_sounds(&mut self, val: bool)
pub fn set_enable_sounds(&mut self, val: bool)
Sets the UserSettings enable_sounds.
Enable audible desktop notifications for direct messages and @-mentions.
Sourcepub fn unset_enable_sounds(&mut self) -> Option<bool>
pub fn unset_enable_sounds(&mut self) -> Option<bool>
Unsets the UserSettings enable_sounds.
Enable audible desktop notifications for direct messages and @-mentions.
Sourcepub fn with_enable_sounds(self, val: bool) -> Self
pub fn with_enable_sounds(self, val: bool) -> Self
Builder function that sets the UserSettings enable_sounds.
Enable audible desktop notifications for direct messages and @-mentions.
Sourcepub const fn enable_followed_topic_desktop_notifications(&self) -> Option<bool>
pub const fn enable_followed_topic_desktop_notifications(&self) -> Option<bool>
Gets the UserSettings enable_followed_topic_desktop_notifications.
Enable visual desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn set_enable_followed_topic_desktop_notifications(&mut self, val: bool)
pub fn set_enable_followed_topic_desktop_notifications(&mut self, val: bool)
Sets the UserSettings enable_followed_topic_desktop_notifications.
Enable visual desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn unset_enable_followed_topic_desktop_notifications(
&mut self,
) -> Option<bool>
pub fn unset_enable_followed_topic_desktop_notifications( &mut self, ) -> Option<bool>
Unsets the UserSettings enable_followed_topic_desktop_notifications.
Enable visual desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn with_enable_followed_topic_desktop_notifications(self, val: bool) -> Self
pub fn with_enable_followed_topic_desktop_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_followed_topic_desktop_notifications.
Enable visual desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub const fn enable_followed_topic_email_notifications(&self) -> Option<bool>
pub const fn enable_followed_topic_email_notifications(&self) -> Option<bool>
Gets the UserSettings enable_followed_topic_email_notifications.
Enable email notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn set_enable_followed_topic_email_notifications(&mut self, val: bool)
pub fn set_enable_followed_topic_email_notifications(&mut self, val: bool)
Sets the UserSettings enable_followed_topic_email_notifications.
Enable email notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn unset_enable_followed_topic_email_notifications(
&mut self,
) -> Option<bool>
pub fn unset_enable_followed_topic_email_notifications( &mut self, ) -> Option<bool>
Unsets the UserSettings enable_followed_topic_email_notifications.
Enable email notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn with_enable_followed_topic_email_notifications(self, val: bool) -> Self
pub fn with_enable_followed_topic_email_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_followed_topic_email_notifications.
Enable email notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub const fn enable_followed_topic_push_notifications(&self) -> Option<bool>
pub const fn enable_followed_topic_push_notifications(&self) -> Option<bool>
Gets the UserSettings enable_followed_topic_push_notifications.
Enable push notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn set_enable_followed_topic_push_notifications(&mut self, val: bool)
pub fn set_enable_followed_topic_push_notifications(&mut self, val: bool)
Sets the UserSettings enable_followed_topic_push_notifications.
Enable push notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn unset_enable_followed_topic_push_notifications(&mut self) -> Option<bool>
pub fn unset_enable_followed_topic_push_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_followed_topic_push_notifications.
Enable push notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn with_enable_followed_topic_push_notifications(self, val: bool) -> Self
pub fn with_enable_followed_topic_push_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_followed_topic_push_notifications.
Enable push notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub const fn enable_followed_topic_audible_notifications(&self) -> Option<bool>
pub const fn enable_followed_topic_audible_notifications(&self) -> Option<bool>
Gets the UserSettings enable_followed_topic_audible_notifications.
Enable audible desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn set_enable_followed_topic_audible_notifications(&mut self, val: bool)
pub fn set_enable_followed_topic_audible_notifications(&mut self, val: bool)
Sets the UserSettings enable_followed_topic_audible_notifications.
Enable audible desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn unset_enable_followed_topic_audible_notifications(
&mut self,
) -> Option<bool>
pub fn unset_enable_followed_topic_audible_notifications( &mut self, ) -> Option<bool>
Unsets the UserSettings enable_followed_topic_audible_notifications.
Enable audible desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn with_enable_followed_topic_audible_notifications(self, val: bool) -> Self
pub fn with_enable_followed_topic_audible_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_followed_topic_audible_notifications.
Enable audible desktop notifications for messages sent to followed topics. Changes: New in Zulip 8.0 (feature level 189).
Sourcepub const fn email_notifications_batching_period_seconds(&self) -> Option<i32>
pub const fn email_notifications_batching_period_seconds(&self) -> Option<i32>
Gets the UserSettings email_notifications_batching_period_seconds.
The duration (in seconds) for which the server should wait to batch email notifications before sending them.
Sourcepub fn set_email_notifications_batching_period_seconds(&mut self, val: i32)
pub fn set_email_notifications_batching_period_seconds(&mut self, val: i32)
Sets the UserSettings email_notifications_batching_period_seconds.
The duration (in seconds) for which the server should wait to batch email notifications before sending them.
Sourcepub fn unset_email_notifications_batching_period_seconds(
&mut self,
) -> Option<i32>
pub fn unset_email_notifications_batching_period_seconds( &mut self, ) -> Option<i32>
Unsets the UserSettings email_notifications_batching_period_seconds.
The duration (in seconds) for which the server should wait to batch email notifications before sending them.
Sourcepub fn with_email_notifications_batching_period_seconds(self, val: i32) -> Self
pub fn with_email_notifications_batching_period_seconds(self, val: i32) -> Self
Builder function that sets the UserSettings email_notifications_batching_period_seconds.
The duration (in seconds) for which the server should wait to batch email notifications before sending them.
Sourcepub const fn enable_offline_email_notifications(&self) -> Option<bool>
pub const fn enable_offline_email_notifications(&self) -> Option<bool>
Gets the UserSettings enable_offline_email_notifications.
Enable email notifications for direct messages and @-mentions received when the user is offline.
Sourcepub fn set_enable_offline_email_notifications(&mut self, val: bool)
pub fn set_enable_offline_email_notifications(&mut self, val: bool)
Sets the UserSettings enable_offline_email_notifications.
Enable email notifications for direct messages and @-mentions received when the user is offline.
Sourcepub fn unset_enable_offline_email_notifications(&mut self) -> Option<bool>
pub fn unset_enable_offline_email_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_offline_email_notifications.
Enable email notifications for direct messages and @-mentions received when the user is offline.
Sourcepub fn with_enable_offline_email_notifications(self, val: bool) -> Self
pub fn with_enable_offline_email_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_offline_email_notifications.
Enable email notifications for direct messages and @-mentions received when the user is offline.
Sourcepub const fn enable_offline_push_notifications(&self) -> Option<bool>
pub const fn enable_offline_push_notifications(&self) -> Option<bool>
Gets the UserSettings enable_offline_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is offline.
Sourcepub fn set_enable_offline_push_notifications(&mut self, val: bool)
pub fn set_enable_offline_push_notifications(&mut self, val: bool)
Sets the UserSettings enable_offline_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is offline.
Sourcepub fn unset_enable_offline_push_notifications(&mut self) -> Option<bool>
pub fn unset_enable_offline_push_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_offline_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is offline.
Sourcepub fn with_enable_offline_push_notifications(self, val: bool) -> Self
pub fn with_enable_offline_push_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_offline_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is offline.
Sourcepub const fn enable_online_push_notifications(&self) -> Option<bool>
pub const fn enable_online_push_notifications(&self) -> Option<bool>
Gets the UserSettings enable_online_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is online.
Sourcepub fn set_enable_online_push_notifications(&mut self, val: bool)
pub fn set_enable_online_push_notifications(&mut self, val: bool)
Sets the UserSettings enable_online_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is online.
Sourcepub fn unset_enable_online_push_notifications(&mut self) -> Option<bool>
pub fn unset_enable_online_push_notifications(&mut self) -> Option<bool>
Unsets the UserSettings enable_online_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is online.
Sourcepub fn with_enable_online_push_notifications(self, val: bool) -> Self
pub fn with_enable_online_push_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings enable_online_push_notifications.
Enable mobile notification for direct messages and @-mentions received when the user is online.
Sourcepub const fn enable_digest_emails(&self) -> Option<bool>
pub const fn enable_digest_emails(&self) -> Option<bool>
Gets the UserSettings enable_digest_emails.
Enable digest emails when the user is away.
Sourcepub fn set_enable_digest_emails(&mut self, val: bool)
pub fn set_enable_digest_emails(&mut self, val: bool)
Sets the UserSettings enable_digest_emails.
Enable digest emails when the user is away.
Sourcepub fn unset_enable_digest_emails(&mut self) -> Option<bool>
pub fn unset_enable_digest_emails(&mut self) -> Option<bool>
Unsets the UserSettings enable_digest_emails.
Enable digest emails when the user is away.
Sourcepub fn with_enable_digest_emails(self, val: bool) -> Self
pub fn with_enable_digest_emails(self, val: bool) -> Self
Builder function that sets the UserSettings enable_digest_emails.
Enable digest emails when the user is away.
Sourcepub const fn enable_marketing_emails(&self) -> Option<bool>
pub const fn enable_marketing_emails(&self) -> Option<bool>
Gets the UserSettings enable_marketing_emails.
Enable marketing emails. Has no function outside Zulip Cloud.
Sourcepub fn set_enable_marketing_emails(&mut self, val: bool)
pub fn set_enable_marketing_emails(&mut self, val: bool)
Sets the UserSettings enable_marketing_emails.
Enable marketing emails. Has no function outside Zulip Cloud.
Sourcepub fn unset_enable_marketing_emails(&mut self) -> Option<bool>
pub fn unset_enable_marketing_emails(&mut self) -> Option<bool>
Unsets the UserSettings enable_marketing_emails.
Enable marketing emails. Has no function outside Zulip Cloud.
Sourcepub fn with_enable_marketing_emails(self, val: bool) -> Self
pub fn with_enable_marketing_emails(self, val: bool) -> Self
Builder function that sets the UserSettings enable_marketing_emails.
Enable marketing emails. Has no function outside Zulip Cloud.
Sourcepub const fn enable_login_emails(&self) -> Option<bool>
pub const fn enable_login_emails(&self) -> Option<bool>
Gets the UserSettings enable_login_emails.
Enable email notifications for new logins to account.
Sourcepub fn set_enable_login_emails(&mut self, val: bool)
pub fn set_enable_login_emails(&mut self, val: bool)
Sets the UserSettings enable_login_emails.
Enable email notifications for new logins to account.
Sourcepub fn unset_enable_login_emails(&mut self) -> Option<bool>
pub fn unset_enable_login_emails(&mut self) -> Option<bool>
Unsets the UserSettings enable_login_emails.
Enable email notifications for new logins to account.
Sourcepub fn with_enable_login_emails(self, val: bool) -> Self
pub fn with_enable_login_emails(self, val: bool) -> Self
Builder function that sets the UserSettings enable_login_emails.
Enable email notifications for new logins to account.
Sourcepub const fn message_content_in_email_notifications(&self) -> Option<bool>
pub const fn message_content_in_email_notifications(&self) -> Option<bool>
Gets the UserSettings message_content_in_email_notifications.
Include the message’s content in email notifications for new messages.
Sourcepub fn set_message_content_in_email_notifications(&mut self, val: bool)
pub fn set_message_content_in_email_notifications(&mut self, val: bool)
Sets the UserSettings message_content_in_email_notifications.
Include the message’s content in email notifications for new messages.
Sourcepub fn unset_message_content_in_email_notifications(&mut self) -> Option<bool>
pub fn unset_message_content_in_email_notifications(&mut self) -> Option<bool>
Unsets the UserSettings message_content_in_email_notifications.
Include the message’s content in email notifications for new messages.
Sourcepub fn with_message_content_in_email_notifications(self, val: bool) -> Self
pub fn with_message_content_in_email_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings message_content_in_email_notifications.
Include the message’s content in email notifications for new messages.
Sourcepub const fn pm_content_in_desktop_notifications(&self) -> Option<bool>
pub const fn pm_content_in_desktop_notifications(&self) -> Option<bool>
Gets the UserSettings pm_content_in_desktop_notifications.
Include content of direct messages in desktop notifications.
Sourcepub fn set_pm_content_in_desktop_notifications(&mut self, val: bool)
pub fn set_pm_content_in_desktop_notifications(&mut self, val: bool)
Sets the UserSettings pm_content_in_desktop_notifications.
Include content of direct messages in desktop notifications.
Sourcepub fn unset_pm_content_in_desktop_notifications(&mut self) -> Option<bool>
pub fn unset_pm_content_in_desktop_notifications(&mut self) -> Option<bool>
Unsets the UserSettings pm_content_in_desktop_notifications.
Include content of direct messages in desktop notifications.
Sourcepub fn with_pm_content_in_desktop_notifications(self, val: bool) -> Self
pub fn with_pm_content_in_desktop_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings pm_content_in_desktop_notifications.
Include content of direct messages in desktop notifications.
Sourcepub const fn wildcard_mentions_notify(&self) -> Option<bool>
pub const fn wildcard_mentions_notify(&self) -> Option<bool>
Gets the UserSettings wildcard_mentions_notify.
Whether wildcard mentions (E.g. @all) should send notifications like a personal mention.
Sourcepub fn set_wildcard_mentions_notify(&mut self, val: bool)
pub fn set_wildcard_mentions_notify(&mut self, val: bool)
Sets the UserSettings wildcard_mentions_notify.
Whether wildcard mentions (E.g. @all) should send notifications like a personal mention.
Sourcepub fn unset_wildcard_mentions_notify(&mut self) -> Option<bool>
pub fn unset_wildcard_mentions_notify(&mut self) -> Option<bool>
Unsets the UserSettings wildcard_mentions_notify.
Whether wildcard mentions (E.g. @all) should send notifications like a personal mention.
Sourcepub fn with_wildcard_mentions_notify(self, val: bool) -> Self
pub fn with_wildcard_mentions_notify(self, val: bool) -> Self
Builder function that sets the UserSettings wildcard_mentions_notify.
Whether wildcard mentions (E.g. @all) should send notifications like a personal mention.
Sourcepub const fn enable_followed_topic_wildcard_mentions_notify(
&self,
) -> Option<bool>
pub const fn enable_followed_topic_wildcard_mentions_notify( &self, ) -> Option<bool>
Gets the UserSettings enable_followed_topic_wildcard_mentions_notify.
Whether wildcard mentions (e.g., @all) in messages sent to followed topics should send notifications like a personal mention.
Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn set_enable_followed_topic_wildcard_mentions_notify(&mut self, val: bool)
pub fn set_enable_followed_topic_wildcard_mentions_notify(&mut self, val: bool)
Sets the UserSettings enable_followed_topic_wildcard_mentions_notify.
Whether wildcard mentions (e.g., @all) in messages sent to followed topics should send notifications like a personal mention.
Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn unset_enable_followed_topic_wildcard_mentions_notify(
&mut self,
) -> Option<bool>
pub fn unset_enable_followed_topic_wildcard_mentions_notify( &mut self, ) -> Option<bool>
Unsets the UserSettings enable_followed_topic_wildcard_mentions_notify.
Whether wildcard mentions (e.g., @all) in messages sent to followed topics should send notifications like a personal mention.
Changes: New in Zulip 8.0 (feature level 189).
Sourcepub fn with_enable_followed_topic_wildcard_mentions_notify(
self,
val: bool,
) -> Self
pub fn with_enable_followed_topic_wildcard_mentions_notify( self, val: bool, ) -> Self
Builder function that sets the UserSettings enable_followed_topic_wildcard_mentions_notify.
Whether wildcard mentions (e.g., @all) in messages sent to followed topics should send notifications like a personal mention.
Changes: New in Zulip 8.0 (feature level 189).
Sourcepub const fn desktop_icon_count_display(
&self,
) -> Option<DesktopIconCountDisplay>
pub const fn desktop_icon_count_display( &self, ) -> Option<DesktopIconCountDisplay>
Gets the UserSettings desktop_icon_count_display.
Unread count badge (appears in desktop sidebar and browser tab)
Sourcepub fn set_desktop_icon_count_display(&mut self, val: DesktopIconCountDisplay)
pub fn set_desktop_icon_count_display(&mut self, val: DesktopIconCountDisplay)
Sets the UserSettings desktop_icon_count_display.
Unread count badge (appears in desktop sidebar and browser tab)
Sourcepub fn unset_desktop_icon_count_display(
&mut self,
) -> Option<DesktopIconCountDisplay>
pub fn unset_desktop_icon_count_display( &mut self, ) -> Option<DesktopIconCountDisplay>
Unsets the UserSettings desktop_icon_count_display.
Unread count badge (appears in desktop sidebar and browser tab)
Sourcepub fn with_desktop_icon_count_display(
self,
val: DesktopIconCountDisplay,
) -> Self
pub fn with_desktop_icon_count_display( self, val: DesktopIconCountDisplay, ) -> Self
Builder function that sets the UserSettings desktop_icon_count_display.
Unread count badge (appears in desktop sidebar and browser tab)
Sourcepub const fn realm_name_in_email_notifications_policy(
&self,
) -> Option<RealmNameInEmailNotificationsPolicy>
pub const fn realm_name_in_email_notifications_policy( &self, ) -> Option<RealmNameInEmailNotificationsPolicy>
Gets the UserSettings realm_name_in_email_notifications_policy.
Whether to include organization name in subject of message notification emails.
Sourcepub fn set_realm_name_in_email_notifications_policy(
&mut self,
val: RealmNameInEmailNotificationsPolicy,
)
pub fn set_realm_name_in_email_notifications_policy( &mut self, val: RealmNameInEmailNotificationsPolicy, )
Sets the UserSettings realm_name_in_email_notifications_policy.
Whether to include organization name in subject of message notification emails.
Sourcepub fn unset_realm_name_in_email_notifications_policy(
&mut self,
) -> Option<RealmNameInEmailNotificationsPolicy>
pub fn unset_realm_name_in_email_notifications_policy( &mut self, ) -> Option<RealmNameInEmailNotificationsPolicy>
Unsets the UserSettings realm_name_in_email_notifications_policy.
Whether to include organization name in subject of message notification emails.
Sourcepub fn with_realm_name_in_email_notifications_policy(
self,
val: RealmNameInEmailNotificationsPolicy,
) -> Self
pub fn with_realm_name_in_email_notifications_policy( self, val: RealmNameInEmailNotificationsPolicy, ) -> Self
Builder function that sets the UserSettings realm_name_in_email_notifications_policy.
Whether to include organization name in subject of message notification emails.
Sourcepub const fn automatically_follow_topics_policy(
&self,
) -> Option<AutomaticallyFollowTopicsPolicy>
pub const fn automatically_follow_topics_policy( &self, ) -> Option<AutomaticallyFollowTopicsPolicy>
Gets the UserSettings automatically_follow_topics_policy.
Sourcepub fn set_automatically_follow_topics_policy(
&mut self,
val: AutomaticallyFollowTopicsPolicy,
)
pub fn set_automatically_follow_topics_policy( &mut self, val: AutomaticallyFollowTopicsPolicy, )
Sets the UserSettings automatically_follow_topics_policy.
Sourcepub fn unset_automatically_follow_topics_policy(
&mut self,
) -> Option<AutomaticallyFollowTopicsPolicy>
pub fn unset_automatically_follow_topics_policy( &mut self, ) -> Option<AutomaticallyFollowTopicsPolicy>
Unsets the UserSettings automatically_follow_topics_policy.
Sourcepub fn with_automatically_follow_topics_policy(
self,
val: AutomaticallyFollowTopicsPolicy,
) -> Self
pub fn with_automatically_follow_topics_policy( self, val: AutomaticallyFollowTopicsPolicy, ) -> Self
Builder function that sets the UserSettings automatically_follow_topics_policy.
Sourcepub const fn automatically_unmute_topics_in_muted_streams_policy(
&self,
) -> Option<AutomaticallyUnmuteTopicsInMutedStreamsPolicy>
pub const fn automatically_unmute_topics_in_muted_streams_policy( &self, ) -> Option<AutomaticallyUnmuteTopicsInMutedStreamsPolicy>
Gets the UserSettings automatically_unmute_topics_in_muted_streams_policy.
Sourcepub fn set_automatically_unmute_topics_in_muted_streams_policy(
&mut self,
val: AutomaticallyUnmuteTopicsInMutedStreamsPolicy,
)
pub fn set_automatically_unmute_topics_in_muted_streams_policy( &mut self, val: AutomaticallyUnmuteTopicsInMutedStreamsPolicy, )
Sets the UserSettings automatically_unmute_topics_in_muted_streams_policy.
Sourcepub fn unset_automatically_unmute_topics_in_muted_streams_policy(
&mut self,
) -> Option<AutomaticallyUnmuteTopicsInMutedStreamsPolicy>
pub fn unset_automatically_unmute_topics_in_muted_streams_policy( &mut self, ) -> Option<AutomaticallyUnmuteTopicsInMutedStreamsPolicy>
Unsets the UserSettings automatically_unmute_topics_in_muted_streams_policy.
Sourcepub fn with_automatically_unmute_topics_in_muted_streams_policy(
self,
val: AutomaticallyUnmuteTopicsInMutedStreamsPolicy,
) -> Self
pub fn with_automatically_unmute_topics_in_muted_streams_policy( self, val: AutomaticallyUnmuteTopicsInMutedStreamsPolicy, ) -> Self
Builder function that sets the UserSettings automatically_unmute_topics_in_muted_streams_policy.
Sourcepub const fn automatically_follow_topics_where_mentioned(&self) -> Option<bool>
pub const fn automatically_follow_topics_where_mentioned(&self) -> Option<bool>
Gets the UserSettings automatically_follow_topics_where_mentioned.
Whether the server will automatically mark the user as following topics where the user is mentioned.
Changes: New in Zulip 8.0 (feature level 235).
Sourcepub fn set_automatically_follow_topics_where_mentioned(&mut self, val: bool)
pub fn set_automatically_follow_topics_where_mentioned(&mut self, val: bool)
Sets the UserSettings automatically_follow_topics_where_mentioned.
Whether the server will automatically mark the user as following topics where the user is mentioned.
Changes: New in Zulip 8.0 (feature level 235).
Sourcepub fn unset_automatically_follow_topics_where_mentioned(
&mut self,
) -> Option<bool>
pub fn unset_automatically_follow_topics_where_mentioned( &mut self, ) -> Option<bool>
Unsets the UserSettings automatically_follow_topics_where_mentioned.
Whether the server will automatically mark the user as following topics where the user is mentioned.
Changes: New in Zulip 8.0 (feature level 235).
Sourcepub fn with_automatically_follow_topics_where_mentioned(self, val: bool) -> Self
pub fn with_automatically_follow_topics_where_mentioned(self, val: bool) -> Self
Builder function that sets the UserSettings automatically_follow_topics_where_mentioned.
Whether the server will automatically mark the user as following topics where the user is mentioned.
Changes: New in Zulip 8.0 (feature level 235).
Sourcepub const fn resolved_topic_notice_auto_read_policy(
&self,
) -> Option<ResolvedTopicNoticeAutoReadPolicy>
pub const fn resolved_topic_notice_auto_read_policy( &self, ) -> Option<ResolvedTopicNoticeAutoReadPolicy>
Gets the UserSettings resolved_topic_notice_auto_read_policy.
Controls whether the resolved-topic notices are marked as read.
Sourcepub fn set_resolved_topic_notice_auto_read_policy(
&mut self,
val: ResolvedTopicNoticeAutoReadPolicy,
)
pub fn set_resolved_topic_notice_auto_read_policy( &mut self, val: ResolvedTopicNoticeAutoReadPolicy, )
Sets the UserSettings resolved_topic_notice_auto_read_policy.
Controls whether the resolved-topic notices are marked as read.
Sourcepub fn unset_resolved_topic_notice_auto_read_policy(
&mut self,
) -> Option<ResolvedTopicNoticeAutoReadPolicy>
pub fn unset_resolved_topic_notice_auto_read_policy( &mut self, ) -> Option<ResolvedTopicNoticeAutoReadPolicy>
Unsets the UserSettings resolved_topic_notice_auto_read_policy.
Controls whether the resolved-topic notices are marked as read.
Sourcepub fn with_resolved_topic_notice_auto_read_policy(
self,
val: ResolvedTopicNoticeAutoReadPolicy,
) -> Self
pub fn with_resolved_topic_notice_auto_read_policy( self, val: ResolvedTopicNoticeAutoReadPolicy, ) -> Self
Builder function that sets the UserSettings resolved_topic_notice_auto_read_policy.
Controls whether the resolved-topic notices are marked as read.
Sourcepub const fn presence_enabled(&self) -> Option<bool>
pub const fn presence_enabled(&self) -> Option<bool>
Gets the UserSettings presence_enabled.
Display the presence status to other users when online.
Sourcepub fn set_presence_enabled(&mut self, val: bool)
pub fn set_presence_enabled(&mut self, val: bool)
Sets the UserSettings presence_enabled.
Display the presence status to other users when online.
Sourcepub fn unset_presence_enabled(&mut self) -> Option<bool>
pub fn unset_presence_enabled(&mut self) -> Option<bool>
Unsets the UserSettings presence_enabled.
Display the presence status to other users when online.
Sourcepub fn with_presence_enabled(self, val: bool) -> Self
pub fn with_presence_enabled(self, val: bool) -> Self
Builder function that sets the UserSettings presence_enabled.
Display the presence status to other users when online.
Sourcepub const fn send_private_typing_notifications(&self) -> Option<bool>
pub const fn send_private_typing_notifications(&self) -> Option<bool>
Gets the UserSettings send_private_typing_notifications.
Whether the user has chosen to send typing notifications when composing direct messages.
The client should send typing notifications for direct messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn set_send_private_typing_notifications(&mut self, val: bool)
pub fn set_send_private_typing_notifications(&mut self, val: bool)
Sets the UserSettings send_private_typing_notifications.
Whether the user has chosen to send typing notifications when composing direct messages.
The client should send typing notifications for direct messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn unset_send_private_typing_notifications(&mut self) -> Option<bool>
pub fn unset_send_private_typing_notifications(&mut self) -> Option<bool>
Unsets the UserSettings send_private_typing_notifications.
Whether the user has chosen to send typing notifications when composing direct messages.
The client should send typing notifications for direct messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn with_send_private_typing_notifications(self, val: bool) -> Self
pub fn with_send_private_typing_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings send_private_typing_notifications.
Whether the user has chosen to send typing notifications when composing direct messages.
The client should send typing notifications for direct messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub const fn send_stream_typing_notifications(&self) -> Option<bool>
pub const fn send_stream_typing_notifications(&self) -> Option<bool>
Gets the UserSettings send_stream_typing_notifications.
Whether the user has chosen to send typing notifications when composing channel messages.
The client should send typing notifications for channel messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn set_send_stream_typing_notifications(&mut self, val: bool)
pub fn set_send_stream_typing_notifications(&mut self, val: bool)
Sets the UserSettings send_stream_typing_notifications.
Whether the user has chosen to send typing notifications when composing channel messages.
The client should send typing notifications for channel messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn unset_send_stream_typing_notifications(&mut self) -> Option<bool>
pub fn unset_send_stream_typing_notifications(&mut self) -> Option<bool>
Unsets the UserSettings send_stream_typing_notifications.
Whether the user has chosen to send typing notifications when composing channel messages.
The client should send typing notifications for channel messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn with_send_stream_typing_notifications(self, val: bool) -> Self
pub fn with_send_stream_typing_notifications(self, val: bool) -> Self
Builder function that sets the UserSettings send_stream_typing_notifications.
Whether the user has chosen to send typing notifications when composing channel messages.
The client should send typing notifications for channel messages if and only if this setting is enabled.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub const fn send_read_receipts(&self) -> Option<bool>
pub const fn send_read_receipts(&self) -> Option<bool>
Gets the UserSettings send_read_receipts.
Whether other users are allowed to see whether you’ve read messages.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn set_send_read_receipts(&mut self, val: bool)
pub fn set_send_read_receipts(&mut self, val: bool)
Sets the UserSettings send_read_receipts.
Whether other users are allowed to see whether you’ve read messages.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn unset_send_read_receipts(&mut self) -> Option<bool>
pub fn unset_send_read_receipts(&mut self) -> Option<bool>
Unsets the UserSettings send_read_receipts.
Whether other users are allowed to see whether you’ve read messages.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub fn with_send_read_receipts(self, val: bool) -> Self
pub fn with_send_read_receipts(self, val: bool) -> Self
Builder function that sets the UserSettings send_read_receipts.
Whether other users are allowed to see whether you’ve read messages.
Changes: New in Zulip 5.0 (feature level 105).
Sourcepub const fn allow_private_data_export(&self) -> Option<bool>
pub const fn allow_private_data_export(&self) -> Option<bool>
Gets the UserSettings allow_private_data_export.
Whether organization administrators are allowed to export your private data.
Changes: New in Zulip 10.0 (feature level 293).
Sourcepub fn set_allow_private_data_export(&mut self, val: bool)
pub fn set_allow_private_data_export(&mut self, val: bool)
Sets the UserSettings allow_private_data_export.
Whether organization administrators are allowed to export your private data.
Changes: New in Zulip 10.0 (feature level 293).
Sourcepub fn unset_allow_private_data_export(&mut self) -> Option<bool>
pub fn unset_allow_private_data_export(&mut self) -> Option<bool>
Unsets the UserSettings allow_private_data_export.
Whether organization administrators are allowed to export your private data.
Changes: New in Zulip 10.0 (feature level 293).
Sourcepub fn with_allow_private_data_export(self, val: bool) -> Self
pub fn with_allow_private_data_export(self, val: bool) -> Self
Builder function that sets the UserSettings allow_private_data_export.
Whether organization administrators are allowed to export your private data.
Changes: New in Zulip 10.0 (feature level 293).
Sourcepub const fn email_address_visibility(&self) -> Option<EmailAddressVisibility>
pub const fn email_address_visibility(&self) -> Option<EmailAddressVisibility>
Gets the UserSettings email_address_visibility.
The policy for
which other users in this organization can see the user’s real email address.
Sourcepub fn set_email_address_visibility(&mut self, val: EmailAddressVisibility)
pub fn set_email_address_visibility(&mut self, val: EmailAddressVisibility)
Sets the UserSettings email_address_visibility.
The policy for
which other users in this organization can see the user’s real email address.
Sourcepub fn unset_email_address_visibility(
&mut self,
) -> Option<EmailAddressVisibility>
pub fn unset_email_address_visibility( &mut self, ) -> Option<EmailAddressVisibility>
Unsets the UserSettings email_address_visibility.
The policy for
which other users in this organization can see the user’s real email address.
Sourcepub fn with_email_address_visibility(self, val: EmailAddressVisibility) -> Self
pub fn with_email_address_visibility(self, val: EmailAddressVisibility) -> Self
Builder function that sets the UserSettings email_address_visibility.
The policy for
which other users in this organization can see the user’s real email address.
Gets the UserSettings web_navigate_to_sent_message.
Web/desktop app setting for whether the user’s view should automatically go to the conversation where they sent a message.
Changes: New in Zulip 9.0 (feature level 268). Previously, this behavior was not configurable.
Sets the UserSettings web_navigate_to_sent_message.
Web/desktop app setting for whether the user’s view should automatically go to the conversation where they sent a message.
Changes: New in Zulip 9.0 (feature level 268). Previously, this behavior was not configurable.
Unsets the UserSettings web_navigate_to_sent_message.
Web/desktop app setting for whether the user’s view should automatically go to the conversation where they sent a message.
Changes: New in Zulip 9.0 (feature level 268). Previously, this behavior was not configurable.
Builder function that sets the UserSettings web_navigate_to_sent_message.
Web/desktop app setting for whether the user’s view should automatically go to the conversation where they sent a message.
Changes: New in Zulip 9.0 (feature level 268). Previously, this behavior was not configurable.
Source§impl UserSettings
impl UserSettings
Sourcepub fn default_language(&self) -> Option<&str>
pub fn default_language(&self) -> Option<&str>
Gets the UserSettings default_language.
What default language to use for the account.
This controls both the Zulip UI as well as email notifications sent to the user.
The value needs to be a standard language code that the Zulip server has translation data for; for example, \"en\" for English or \"de\" for German.
Sourcepub fn set_default_language<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_default_language<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UserSettings default_language.
What default language to use for the account.
This controls both the Zulip UI as well as email notifications sent to the user.
The value needs to be a standard language code that the Zulip server has translation data for; for example, \"en\" for English or \"de\" for German.
Sourcepub fn unset_default_language(&mut self) -> Option<String>
pub fn unset_default_language(&mut self) -> Option<String>
Unsets the UserSettings default_language.
What default language to use for the account.
This controls both the Zulip UI as well as email notifications sent to the user.
The value needs to be a standard language code that the Zulip server has translation data for; for example, \"en\" for English or \"de\" for German.
Sourcepub fn with_default_language<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_default_language<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserSettings default_language.
What default language to use for the account.
This controls both the Zulip UI as well as email notifications sent to the user.
The value needs to be a standard language code that the Zulip server has translation data for; for example, \"en\" for English or \"de\" for German.
Sourcepub fn notification_sound(&self) -> Option<&str>
pub fn notification_sound(&self) -> Option<&str>
Gets the UserSettings notification_sound.
Notification sound name.
Sourcepub fn set_notification_sound<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_notification_sound<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UserSettings notification_sound.
Notification sound name.
Sourcepub fn unset_notification_sound(&mut self) -> Option<String>
pub fn unset_notification_sound(&mut self) -> Option<String>
Unsets the UserSettings notification_sound.
Notification sound name.
Sourcepub fn with_notification_sound<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_notification_sound<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserSettings notification_sound.
Notification sound name.
Sourcepub fn timezone(&self) -> Option<&str>
pub fn timezone(&self) -> Option<&str>
Gets the UserSettings timezone.
The IANA identifier of the user’s profile time zone, which is used primarily to display the user’s local time to other users.
Sourcepub fn set_timezone<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
pub fn set_timezone<'a, C: Into<Cow<'a, str>>>(&mut self, val: C)
Sets the UserSettings timezone.
The IANA identifier of the user’s profile time zone, which is used primarily to display the user’s local time to other users.
Sourcepub fn unset_timezone(&mut self) -> Option<String>
pub fn unset_timezone(&mut self) -> Option<String>
Unsets the UserSettings timezone.
The IANA identifier of the user’s profile time zone, which is used primarily to display the user’s local time to other users.
Sourcepub fn with_timezone<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
pub fn with_timezone<'a, C: Into<Cow<'a, str>>>(self, val: C) -> Self
Builder function that sets the UserSettings timezone.
The IANA identifier of the user’s profile time zone, which is used primarily to display the user’s local time to other users.
Sourcepub fn available_notification_sounds(&self) -> Option<&[String]>
pub fn available_notification_sounds(&self) -> Option<&[String]>
Gets the UserSettings available_notification_sounds.
Array containing the names of the notification sound options supported by this Zulip server.
Only relevant to support UI for configuring notification sounds.
Sourcepub fn set_available_notification_sounds<'a, C: Into<Cow<'a, [String]>>>(
&mut self,
val: C,
)
pub fn set_available_notification_sounds<'a, C: Into<Cow<'a, [String]>>>( &mut self, val: C, )
Sets the UserSettings available_notification_sounds.
Array containing the names of the notification sound options supported by this Zulip server.
Only relevant to support UI for configuring notification sounds.
Sourcepub fn unset_available_notification_sounds(&mut self) -> Option<Vec<String>>
pub fn unset_available_notification_sounds(&mut self) -> Option<Vec<String>>
Unsets the UserSettings available_notification_sounds.
Array containing the names of the notification sound options supported by this Zulip server.
Only relevant to support UI for configuring notification sounds.
Sourcepub fn with_available_notification_sounds<'a, C: Into<Cow<'a, [String]>>>(
self,
val: C,
) -> Self
pub fn with_available_notification_sounds<'a, C: Into<Cow<'a, [String]>>>( self, val: C, ) -> Self
Builder function that sets the UserSettings available_notification_sounds.
Array containing the names of the notification sound options supported by this Zulip server.
Only relevant to support UI for configuring notification sounds.
Sourcepub fn emojiset_choices(&self) -> Option<&[UserSettingsEmojisetChoice]>
pub fn emojiset_choices(&self) -> Option<&[UserSettingsEmojisetChoice]>
Gets the UserSettings emojiset_choices.
Array of dictionaries where each dictionary describes an emoji set supported by this version of the Zulip server.
Only relevant to clients with configuration UI for choosing an emoji set; the currently selected emoji set is available in the emojiset key.
See PATCH /settings for details on the meaning of this setting.
Sourcepub fn set_emojiset_choices<'a, C: Into<Cow<'a, [UserSettingsEmojisetChoice]>>>(
&mut self,
val: C,
)
pub fn set_emojiset_choices<'a, C: Into<Cow<'a, [UserSettingsEmojisetChoice]>>>( &mut self, val: C, )
Sets the UserSettings emojiset_choices.
Array of dictionaries where each dictionary describes an emoji set supported by this version of the Zulip server.
Only relevant to clients with configuration UI for choosing an emoji set; the currently selected emoji set is available in the emojiset key.
See PATCH /settings for details on the meaning of this setting.
Sourcepub fn unset_emojiset_choices(
&mut self,
) -> Option<Vec<UserSettingsEmojisetChoice>>
pub fn unset_emojiset_choices( &mut self, ) -> Option<Vec<UserSettingsEmojisetChoice>>
Unsets the UserSettings emojiset_choices.
Array of dictionaries where each dictionary describes an emoji set supported by this version of the Zulip server.
Only relevant to clients with configuration UI for choosing an emoji set; the currently selected emoji set is available in the emojiset key.
See PATCH /settings for details on the meaning of this setting.
Sourcepub fn with_emojiset_choices<'a, C: Into<Cow<'a, [UserSettingsEmojisetChoice]>>>(
self,
val: C,
) -> Self
pub fn with_emojiset_choices<'a, C: Into<Cow<'a, [UserSettingsEmojisetChoice]>>>( self, val: C, ) -> Self
Builder function that sets the UserSettings emojiset_choices.
Array of dictionaries where each dictionary describes an emoji set supported by this version of the Zulip server.
Only relevant to clients with configuration UI for choosing an emoji set; the currently selected emoji set is available in the emojiset key.
See PATCH /settings for details on the meaning of this setting.