pub struct UserSettings {Show 19 fields
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub notification_delivery_preferences: Option<NotificationDeliveryPreferences>,
pub unsubscribed_from: Option<Vec<String>>,
pub user: Option<User>,
pub calendar_hash: Option<String>,
pub subscribed_to_changelog: Option<bool>,
pub subscribed_to_dpa: Option<bool>,
pub subscribed_to_invite_accepted: Option<bool>,
pub subscribed_to_privacy_legal_updates: Option<bool>,
pub feed_summary_schedule: Option<FeedSummarySchedule>,
pub show_full_user_names: Option<bool>,
pub feed_last_seen_time: Option<DateTime<Utc>>,
pub auto_assign_to_self: Option<bool>,
pub notification_category_preferences: Option<NotificationCategoryPreferences>,
pub notification_channel_preferences: Option<NotificationChannelPreferences>,
pub theme: Option<UserSettingsTheme>,
}Expand description
Per-user settings and preferences for a workspace member. Includes notification delivery preferences, email subscription settings, notification category and channel preferences, theme configuration, and various UI preferences. Each user has exactly one UserSettings record per workspace.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
notification_delivery_preferences: Option<NotificationDeliveryPreferences>The notification delivery preferences for the user. Note: notificationDisabled field is deprecated in favor of notificationChannelPreferences.
unsubscribed_from: Option<Vec<String>>The email types the user has unsubscribed from.
user: Option<User>The user that these settings belong to.
calendar_hash: Option<String>A unique hash for the user, used to construct secure calendar subscription URLs.
subscribed_to_changelog: Option<bool>Whether this user is subscribed to receive changelog emails about Linear product updates.
subscribed_to_dpa: Option<bool>Whether this user is subscribed to receive Data Processing Agreement (DPA) related emails.
subscribed_to_invite_accepted: Option<bool>Whether this user is subscribed to receive email notifications when their workspace invitations are accepted.
subscribed_to_privacy_legal_updates: Option<bool>Whether this user is subscribed to receive emails about privacy policy and legal updates.
feed_summary_schedule: Option<FeedSummarySchedule>The user’s preferred schedule for receiving feed summary digests. Null if the user has not set a preference and will use the workspace default.
show_full_user_names: Option<bool>Whether to show full user names instead of display names.
feed_last_seen_time: Option<DateTime<Utc>>The user’s last seen time for the pulse feed.
auto_assign_to_self: Option<bool>Whether to auto-assign newly created issues to the current user by default.
notification_category_preferences: Option<NotificationCategoryPreferences>The user’s notification category preferences, indicating which notification categories are enabled or disabled per notification channel.
notification_channel_preferences: Option<NotificationChannelPreferences>The user’s notification channel preferences, indicating which notification delivery channels (email, in-app, mobile push, Slack) are enabled.
theme: Option<UserSettingsTheme>The user’s theme configuration for the specified color mode (light/dark) and device type (desktop/mobile). Returns null if no valid theme preset is configured.
Trait Implementations§
Source§impl Clone for UserSettings
impl Clone for UserSettings
Source§fn clone(&self) -> UserSettings
fn clone(&self) -> UserSettings
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more