pub struct SlackParentMessageParams {
pub reply_count: Option<usize>,
pub reply_users_count: Option<usize>,
pub latest_reply: Option<SlackTs>,
pub reply_users: Option<Vec<SlackUserId>>,
pub subscribed: Option<bool>,
pub last_read: Option<SlackTs>,
}Fields§
§reply_count: Option<usize>§reply_users_count: Option<usize>§latest_reply: Option<SlackTs>§reply_users: Option<Vec<SlackUserId>>§subscribed: Option<bool>§last_read: Option<SlackTs>Implementations§
Source§impl SlackParentMessageParams
impl SlackParentMessageParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackParentMessageParams from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn reply_count(&mut self, value: usize) -> &mut Self
pub fn reply_count(&mut self, value: usize) -> &mut Self
Sets reply_count to Some(value).
Sourcepub fn reset_reply_count(&mut self) -> &mut Self
pub fn reset_reply_count(&mut self) -> &mut Self
Sets reply_count to None.
Sourcepub fn mopt_reply_count(&mut self, value: Option<usize>) -> &mut Self
pub fn mopt_reply_count(&mut self, value: Option<usize>) -> &mut Self
Sets reply_count to the given Option.
Sourcepub fn with_reply_count(self, value: usize) -> Self
pub fn with_reply_count(self, value: usize) -> Self
Returns self with reply_count set to Some(value).
Sourcepub fn without_reply_count(self) -> Self
pub fn without_reply_count(self) -> Self
Returns self with reply_count set to None.
Sourcepub fn opt_reply_count(self, value: Option<usize>) -> Self
pub fn opt_reply_count(self, value: Option<usize>) -> Self
Returns self with reply_count set to the given Option.
Sourcepub fn reply_users_count(&mut self, value: usize) -> &mut Self
pub fn reply_users_count(&mut self, value: usize) -> &mut Self
Sets reply_users_count to Some(value).
Sourcepub fn reset_reply_users_count(&mut self) -> &mut Self
pub fn reset_reply_users_count(&mut self) -> &mut Self
Sets reply_users_count to None.
Sourcepub fn mopt_reply_users_count(&mut self, value: Option<usize>) -> &mut Self
pub fn mopt_reply_users_count(&mut self, value: Option<usize>) -> &mut Self
Sets reply_users_count to the given Option.
Sourcepub fn with_reply_users_count(self, value: usize) -> Self
pub fn with_reply_users_count(self, value: usize) -> Self
Returns self with reply_users_count set to Some(value).
Sourcepub fn without_reply_users_count(self) -> Self
pub fn without_reply_users_count(self) -> Self
Returns self with reply_users_count set to None.
Sourcepub fn opt_reply_users_count(self, value: Option<usize>) -> Self
pub fn opt_reply_users_count(self, value: Option<usize>) -> Self
Returns self with reply_users_count set to the given Option.
Sourcepub fn latest_reply(&mut self, value: SlackTs) -> &mut Self
pub fn latest_reply(&mut self, value: SlackTs) -> &mut Self
Sets latest_reply to Some(value).
Sourcepub fn reset_latest_reply(&mut self) -> &mut Self
pub fn reset_latest_reply(&mut self) -> &mut Self
Sets latest_reply to None.
Sourcepub fn mopt_latest_reply(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_latest_reply(&mut self, value: Option<SlackTs>) -> &mut Self
Sets latest_reply to the given Option.
Sourcepub fn with_latest_reply(self, value: SlackTs) -> Self
pub fn with_latest_reply(self, value: SlackTs) -> Self
Returns self with latest_reply set to Some(value).
Sourcepub fn without_latest_reply(self) -> Self
pub fn without_latest_reply(self) -> Self
Returns self with latest_reply set to None.
Sourcepub fn opt_latest_reply(self, value: Option<SlackTs>) -> Self
pub fn opt_latest_reply(self, value: Option<SlackTs>) -> Self
Returns self with latest_reply set to the given Option.
Sourcepub fn reply_users(&mut self, value: Vec<SlackUserId>) -> &mut Self
pub fn reply_users(&mut self, value: Vec<SlackUserId>) -> &mut Self
Sets reply_users to Some(value).
Sourcepub fn reset_reply_users(&mut self) -> &mut Self
pub fn reset_reply_users(&mut self) -> &mut Self
Sets reply_users to None.
Sourcepub fn mopt_reply_users(&mut self, value: Option<Vec<SlackUserId>>) -> &mut Self
pub fn mopt_reply_users(&mut self, value: Option<Vec<SlackUserId>>) -> &mut Self
Sets reply_users to the given Option.
Sourcepub fn with_reply_users(self, value: Vec<SlackUserId>) -> Self
pub fn with_reply_users(self, value: Vec<SlackUserId>) -> Self
Returns self with reply_users set to Some(value).
Sourcepub fn without_reply_users(self) -> Self
pub fn without_reply_users(self) -> Self
Returns self with reply_users set to None.
Sourcepub fn opt_reply_users(self, value: Option<Vec<SlackUserId>>) -> Self
pub fn opt_reply_users(self, value: Option<Vec<SlackUserId>>) -> Self
Returns self with reply_users set to the given Option.
Sourcepub fn subscribed(&mut self, value: bool) -> &mut Self
pub fn subscribed(&mut self, value: bool) -> &mut Self
Sets subscribed to Some(value).
Sourcepub fn reset_subscribed(&mut self) -> &mut Self
pub fn reset_subscribed(&mut self) -> &mut Self
Sets subscribed to None.
Sourcepub fn mopt_subscribed(&mut self, value: Option<bool>) -> &mut Self
pub fn mopt_subscribed(&mut self, value: Option<bool>) -> &mut Self
Sets subscribed to the given Option.
Sourcepub fn with_subscribed(self, value: bool) -> Self
pub fn with_subscribed(self, value: bool) -> Self
Returns self with subscribed set to Some(value).
Sourcepub fn without_subscribed(self) -> Self
pub fn without_subscribed(self) -> Self
Returns self with subscribed set to None.
Sourcepub fn opt_subscribed(self, value: Option<bool>) -> Self
pub fn opt_subscribed(self, value: Option<bool>) -> Self
Returns self with subscribed set to the given Option.
Sourcepub fn reset_last_read(&mut self) -> &mut Self
pub fn reset_last_read(&mut self) -> &mut Self
Sets last_read to None.
Sourcepub fn mopt_last_read(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn mopt_last_read(&mut self, value: Option<SlackTs>) -> &mut Self
Sets last_read to the given Option.
Sourcepub fn with_last_read(self, value: SlackTs) -> Self
pub fn with_last_read(self, value: SlackTs) -> Self
Returns self with last_read set to Some(value).
Sourcepub fn without_last_read(self) -> Self
pub fn without_last_read(self) -> Self
Returns self with last_read set to None.
Sourcepub fn opt_last_read(self, value: Option<SlackTs>) -> Self
pub fn opt_last_read(self, value: Option<SlackTs>) -> Self
Returns self with last_read set to the given Option.