#[repr(i8)]pub enum ChatVisibility {
Normal = 0,
Archived = 1,
Pinned = 2,
}
Expand description
Whether the chat is pinned or archived.
Variants§
Normal = 0
Chat is neither archived nor pinned.
Archived = 1
Chat is archived.
Pinned = 2
Chat is pinned to the top of the chatlist.
Trait Implementations§
source§impl Clone for ChatVisibility
impl Clone for ChatVisibility
source§fn clone(&self) -> ChatVisibility
fn clone(&self) -> ChatVisibility
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 ChatVisibility
impl Debug for ChatVisibility
source§impl<'de> Deserialize<'de> for ChatVisibility
impl<'de> Deserialize<'de> for ChatVisibility
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 ChatVisibility
impl FromSql for ChatVisibility
source§fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
fn column_result(value: ValueRef<'_>) -> FromSqlResult<Self>
Converts SQLite value into Rust value.
source§impl IntoEnumIterator for ChatVisibility
impl IntoEnumIterator for ChatVisibility
type Iterator = ChatVisibilityIter
fn iter() -> ChatVisibilityIter ⓘ
source§impl PartialEq for ChatVisibility
impl PartialEq for ChatVisibility
source§impl Serialize for ChatVisibility
impl Serialize for ChatVisibility
source§impl ToSql for ChatVisibility
impl ToSql for ChatVisibility
impl Copy for ChatVisibility
impl Eq for ChatVisibility
impl StructuralPartialEq for ChatVisibility
Auto Trait Implementations§
impl Freeze for ChatVisibility
impl RefUnwindSafe for ChatVisibility
impl Send for ChatVisibility
impl Sync for ChatVisibility
impl Unpin for ChatVisibility
impl UnwindSafe for ChatVisibility
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.