#[repr(u32)]pub enum MessageCreateType {
Text = 0,
Markdown = 2,
Ark = 3,
Embed = 4,
At = 5,
InputNotify = 6,
RichMedia = 7,
Unknown(u32),
}Expand description
Message type used by the message create APIs.
Variants§
Text = 0
Text message
Markdown = 2
Markdown message
Ark = 3
Ark message
Embed = 4
Embed message
At = 5
Mention message
InputNotify = 6
Input status notification
RichMedia = 7
Rich media message
Unknown(u32)
Unknown message type
Trait Implementations§
Source§impl Clone for MessageCreateType
impl Clone for MessageCreateType
Source§fn clone(&self) -> MessageCreateType
fn clone(&self) -> MessageCreateType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 MessageCreateType
impl Debug for MessageCreateType
Source§impl<'de> Deserialize<'de> for MessageCreateType
impl<'de> Deserialize<'de> for MessageCreateType
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 From<MessageCreateType> for u32
impl From<MessageCreateType> for u32
Source§fn from(value: MessageCreateType) -> Self
fn from(value: MessageCreateType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for MessageCreateType
impl From<u32> for MessageCreateType
Source§impl Hash for MessageCreateType
impl Hash for MessageCreateType
Source§impl PartialEq for MessageCreateType
impl PartialEq for MessageCreateType
Source§fn eq(&self, other: &MessageCreateType) -> bool
fn eq(&self, other: &MessageCreateType) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for MessageCreateType
impl Serialize for MessageCreateType
impl Copy for MessageCreateType
impl Eq for MessageCreateType
impl StructuralPartialEq for MessageCreateType
Auto Trait Implementations§
impl Freeze for MessageCreateType
impl RefUnwindSafe for MessageCreateType
impl Send for MessageCreateType
impl Sync for MessageCreateType
impl Unpin for MessageCreateType
impl UnsafeUnpin for MessageCreateType
impl UnwindSafe for MessageCreateType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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.