Struct slack_morphism::SlackChannelCurrentState
source · 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
pub fn new() -> Self
pub fn last_read(&mut self, value: SlackTs) -> &mut Self
pub fn reset_last_read(&mut self) -> &mut Self
pub fn mopt_last_read(&mut self, value: Option<SlackTs>) -> &mut Self
pub fn with_last_read(self, value: SlackTs) -> Self
pub fn without_last_read(self) -> Self
pub fn opt_last_read(self, value: Option<SlackTs>) -> Self
pub fn unread_count(&mut self, value: u64) -> &mut Self
pub fn reset_unread_count(&mut self) -> &mut Self
pub fn mopt_unread_count(&mut self, value: Option<u64>) -> &mut Self
pub fn with_unread_count(self, value: u64) -> Self
pub fn without_unread_count(self) -> Self
pub fn opt_unread_count(self, value: Option<u64>) -> Self
pub fn unread_count_display(&mut self, value: u64) -> &mut Self
pub fn reset_unread_count_display(&mut self) -> &mut Self
pub fn mopt_unread_count_display(&mut self, value: Option<u64>) -> &mut Self
pub fn with_unread_count_display(self, value: u64) -> Self
pub fn without_unread_count_display(self) -> Self
pub fn opt_unread_count_display(self, value: Option<u64>) -> Self
Trait Implementations§
source§impl Clone for SlackChannelCurrentState
impl Clone for SlackChannelCurrentState
source§fn clone(&self) -> SlackChannelCurrentState
fn clone(&self) -> SlackChannelCurrentState
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SlackChannelCurrentState
impl Debug for SlackChannelCurrentState
source§impl<'de> Deserialize<'de> for SlackChannelCurrentState
impl<'de> Deserialize<'de> for SlackChannelCurrentState
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl From<SlackChannelCurrentStateInit> for SlackChannelCurrentState
impl From<SlackChannelCurrentStateInit> for SlackChannelCurrentState
source§fn from(value: SlackChannelCurrentStateInit) -> Self
fn from(value: SlackChannelCurrentStateInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackChannelCurrentState
impl PartialEq for SlackChannelCurrentState
source§fn eq(&self, other: &SlackChannelCurrentState) -> bool
fn eq(&self, other: &SlackChannelCurrentState) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackChannelCurrentState
impl Serialize for SlackChannelCurrentState
impl StructuralPartialEq for SlackChannelCurrentState
Auto Trait Implementations§
impl RefUnwindSafe for SlackChannelCurrentState
impl Send for SlackChannelCurrentState
impl Sync for SlackChannelCurrentState
impl Unpin for SlackChannelCurrentState
impl UnwindSafe for SlackChannelCurrentState
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more