pub struct SlackChannelCurrentState {
pub last_read: Option<SlackTs>,
pub unread_count: Option<u64>,
pub unread_count_display: Option<u64>,
}Fields§
§last_read: Option<SlackTs>§unread_count: Option<u64>§unread_count_display: Option<u64>Implementations§
Source§impl SlackChannelCurrentState
impl SlackChannelCurrentState
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates a new SlackChannelCurrentState from its required fields. Option fields start as None, and fields with #[default] take their default.
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.
Sourcepub fn unread_count(&mut self, value: u64) -> &mut Self
pub fn unread_count(&mut self, value: u64) -> &mut Self
Sets unread_count to Some(value).
Sourcepub fn reset_unread_count(&mut self) -> &mut Self
pub fn reset_unread_count(&mut self) -> &mut Self
Sets unread_count to None.
Sourcepub fn mopt_unread_count(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_unread_count(&mut self, value: Option<u64>) -> &mut Self
Sets unread_count to the given Option.
Sourcepub fn with_unread_count(self, value: u64) -> Self
pub fn with_unread_count(self, value: u64) -> Self
Returns self with unread_count set to Some(value).
Sourcepub fn without_unread_count(self) -> Self
pub fn without_unread_count(self) -> Self
Returns self with unread_count set to None.
Sourcepub fn opt_unread_count(self, value: Option<u64>) -> Self
pub fn opt_unread_count(self, value: Option<u64>) -> Self
Returns self with unread_count set to the given Option.
Sourcepub fn unread_count_display(&mut self, value: u64) -> &mut Self
pub fn unread_count_display(&mut self, value: u64) -> &mut Self
Sets unread_count_display to Some(value).
Sourcepub fn reset_unread_count_display(&mut self) -> &mut Self
pub fn reset_unread_count_display(&mut self) -> &mut Self
Sets unread_count_display to None.
Sourcepub fn mopt_unread_count_display(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_unread_count_display(&mut self, value: Option<u64>) -> &mut Self
Sets unread_count_display to the given Option.
Sourcepub fn with_unread_count_display(self, value: u64) -> Self
pub fn with_unread_count_display(self, value: u64) -> Self
Returns self with unread_count_display set to Some(value).
Sourcepub fn without_unread_count_display(self) -> Self
pub fn without_unread_count_display(self) -> Self
Returns self with unread_count_display set to None.
Sourcepub fn opt_unread_count_display(self, value: Option<u64>) -> Self
pub fn opt_unread_count_display(self, value: Option<u64>) -> Self
Returns self with unread_count_display set to the given Option.