mirror of
https://github.com/System-End/slack-morphism-rust.git
synced 2026-04-19 16:28:25 +00:00
feat: add huddle_state fields to SlackUserProfile (#348)
* feat: add huddle_state fields to SlackUserProfile * Change huddle_state to an optional enum SlackHuddleState
This commit is contained in:
parent
02f19e0b11
commit
34c6c08418
1 changed files with 11 additions and 0 deletions
|
|
@ -39,6 +39,8 @@ pub struct SlackUserProfile {
|
|||
pub status_text: Option<String>,
|
||||
pub status_expiration: Option<SlackDateTime>,
|
||||
pub status_emoji: Option<SlackEmoji>,
|
||||
pub huddle_state: Option<SlackHuddleState>,
|
||||
pub huddle_state_expiration_ts: Option<SlackDateTime>,
|
||||
pub display_name_normalized: Option<String>,
|
||||
pub email: Option<EmailAddress>,
|
||||
#[serde(flatten)]
|
||||
|
|
@ -122,6 +124,15 @@ pub struct SlackUserGroupPrefs {
|
|||
pub groups: Vec<SlackUserGroupId>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Hash, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "snake_case")]
|
||||
pub enum SlackHuddleState {
|
||||
InAHuddle,
|
||||
DefaultUnset,
|
||||
#[serde(untagged)]
|
||||
Other(String),
|
||||
}
|
||||
|
||||
#[derive(Debug, Eq, PartialEq, Hash, Clone, Serialize, Deserialize, ValueStruct)]
|
||||
pub struct SlackAvatarHash(pub String);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue