pub enum PropagateMode {
ChangeOne,
ChangeLater,
ChangeAll,
}Expand description
Represents the propagation mode on a Zulip server.
Variants§
ChangeOne
Indicates changing one message.
ChangeLater
Indicates changing the target message, and all following messages in a topic.
ChangeAll
Indicates changing all messages in a topic.
Implementations§
Source§impl PropagateMode
impl PropagateMode
Sourcepub const CHANGE_ONE: &str = "change_one"
pub const CHANGE_ONE: &str = "change_one"
Represents the PropagateMode change one string value.
Sourcepub const CHANGE_LATER: &str = "change_later"
pub const CHANGE_LATER: &str = "change_later"
Represents the PropagateMode change later string value.
Sourcepub const CHANGE_ALL: &str = "change_all"
pub const CHANGE_ALL: &str = "change_all"
Represents the PropagateMode change all string value.
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new PropagateMode.
Sourcepub const fn as_str(&self) -> &'static str
pub const fn as_str(&self) -> &'static str
Gets the PropagateMode string representation.
Trait Implementations§
Source§impl Clone for PropagateMode
impl Clone for PropagateMode
impl Copy for PropagateMode
Source§impl Debug for PropagateMode
impl Debug for PropagateMode
Source§impl Default for PropagateMode
impl Default for PropagateMode
Source§impl<'de> Deserialize<'de> for PropagateMode
impl<'de> Deserialize<'de> for PropagateMode
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 Display for PropagateMode
impl Display for PropagateMode
impl Eq for PropagateMode
Source§impl From<PropagateMode> for &'static str
impl From<PropagateMode> for &'static str
Source§fn from(val: PropagateMode) -> Self
fn from(val: PropagateMode) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PropagateMode
impl PartialEq for PropagateMode
Source§impl Serialize for PropagateMode
impl Serialize for PropagateMode
impl StructuralPartialEq for PropagateMode
Source§impl TryFrom<&str> for PropagateMode
impl TryFrom<&str> for PropagateMode
Auto Trait Implementations§
impl Freeze for PropagateMode
impl RefUnwindSafe for PropagateMode
impl Send for PropagateMode
impl Sync for PropagateMode
impl Unpin for PropagateMode
impl UnsafeUnpin for PropagateMode
impl UnwindSafe for PropagateMode
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.