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
sourceimpl 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
sourceimpl Clone for SlackChannelCurrentState
impl Clone for SlackChannelCurrentState
sourcefn clone(&self) -> SlackChannelCurrentState
fn clone(&self) -> SlackChannelCurrentState
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SlackChannelCurrentState
impl Debug for SlackChannelCurrentState
sourceimpl<'de> Deserialize<'de> for SlackChannelCurrentState
impl<'de> Deserialize<'de> for SlackChannelCurrentState
sourcefn 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
sourceimpl From<SlackChannelCurrentStateInit> for SlackChannelCurrentState
impl From<SlackChannelCurrentStateInit> for SlackChannelCurrentState
sourcefn from(value: SlackChannelCurrentStateInit) -> Self
fn from(value: SlackChannelCurrentStateInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackChannelCurrentState> for SlackChannelCurrentState
impl PartialEq<SlackChannelCurrentState> for SlackChannelCurrentState
sourcefn 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 ==
. Read more
sourcefn ne(&self, other: &SlackChannelCurrentState) -> bool
fn ne(&self, other: &SlackChannelCurrentState) -> bool
This method tests for !=
.
sourceimpl 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more