pub enum Flag {
Read,
Starred,
Collapsed,
Mentioned,
StreamWildcardMentioned,
TopicWildcardMentioned,
HasAlertWord,
Historical,
}Expand description
Represents an available Zulip message flag.
Flags are annotations to messages indicating additional state.
Variants§
Read
Starred
Collapsed
Mentioned
StreamWildcardMentioned
TopicWildcardMentioned
HasAlertWord
Historical
Implementations§
Source§impl Flag
impl Flag
Sourcepub const STREAM_WILDCARD_MENTIONED: &str = "stream_wildcard_mentioned"
pub const STREAM_WILDCARD_MENTIONED: &str = "stream_wildcard_mentioned"
Represents the string value for the stream wildcard mentioned Flag.
Sourcepub const TOPIC_WILDCARD_MENTIONED: &str = "topic_wildcard_mentioned"
pub const TOPIC_WILDCARD_MENTIONED: &str = "topic_wildcard_mentioned"
Represents the string value for the topic wildcard mentioned Flag.
Sourcepub const HAS_ALERT_WORD: &str = "has_alert_word"
pub const HAS_ALERT_WORD: &str = "has_alert_word"
Represents the string value for the has alert word Flag.
Sourcepub const HISTORICAL: &str = "historical"
pub const HISTORICAL: &str = "historical"
Represents the string value for the historical Flag.
Sourcepub fn try_from_str(val: &str) -> Result<Self>
pub fn try_from_str(val: &str) -> Result<Self>
Attempts to convert a string into a Flag.
Trait Implementations§
impl Copy for Flag
Source§impl<'de> Deserialize<'de> for Flag
impl<'de> Deserialize<'de> for Flag
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
impl Eq for Flag
impl StructuralPartialEq for Flag
Auto Trait Implementations§
impl Freeze for Flag
impl RefUnwindSafe for Flag
impl Send for Flag
impl Sync for Flag
impl Unpin for Flag
impl UnsafeUnpin for Flag
impl UnwindSafe for Flag
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.