Skip to content

Commit

Permalink
fix: Make SlackStarsItem* struct attributes public (#245)
Browse files Browse the repository at this point in the history
For destructuring such struct, it's required to set attributes visibility to public
  • Loading branch information
dax authored Mar 1, 2024
1 parent 43423cd commit 9ed349b
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions src/models/common/star.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,45 +22,45 @@ pub enum SlackStarsItem {
#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemMessage {
message: SlackHistoryMessage,
channel: SlackChannelId,
date_create: SlackDateTime,
pub message: SlackHistoryMessage,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}

#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemFile {
file: SlackFile,
channel: SlackChannelId,
date_create: SlackDateTime,
pub file: SlackFile,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}

#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemFileComment {
file: SlackFile,
comment: String,
channel: SlackChannelId,
date_create: SlackDateTime,
pub file: SlackFile,
pub comment: String,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}

#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemChannel {
channel: SlackChannelId,
date_create: SlackDateTime,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}

#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemIm {
channel: SlackChannelId,
date_create: SlackDateTime,
pub channel: SlackChannelId,
pub date_create: SlackDateTime,
}

#[skip_serializing_none]
#[derive(Debug, PartialEq, Clone, Serialize, Deserialize, Builder)]
pub struct SlackStarsItemGroup {
group: SlackChannelId,
date_create: SlackDateTime,
pub group: SlackChannelId,
pub date_create: SlackDateTime,
}

0 comments on commit 9ed349b

Please sign in to comment.