pub enum MuteDuration {
NotMuted,
Forever,
Until(SystemTime),
}
Expand description
Chat mute duration.
Variants§
NotMuted
Chat is not muted.
Forever
Chat is muted until the user unmutes the chat.
Until(SystemTime)
Chat is muted for a limited period of time.
Trait Implementations§
source§impl Clone for MuteDuration
impl Clone for MuteDuration
source§fn clone(&self) -> MuteDuration
fn clone(&self) -> MuteDuration
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 MuteDuration
impl Debug for MuteDuration
source§impl<'de> Deserialize<'de> for MuteDuration
impl<'de> Deserialize<'de> for MuteDuration
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 FromSql for MuteDuration
impl FromSql for MuteDuration
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
source§impl PartialEq for MuteDuration
impl PartialEq for MuteDuration
source§impl Serialize for MuteDuration
impl Serialize for MuteDuration
source§impl ToSql for MuteDuration
impl ToSql for MuteDuration
impl Copy for MuteDuration
impl Eq for MuteDuration
impl StructuralPartialEq for MuteDuration
Auto Trait Implementations§
impl Freeze for MuteDuration
impl RefUnwindSafe for MuteDuration
impl Send for MuteDuration
impl Sync for MuteDuration
impl Unpin for MuteDuration
impl UnwindSafe for MuteDuration
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.