pub enum InputRichMessage {
InputRichMessage(InputRichMessage),
Html(InputRichMessageHtml),
Markdown(InputRichMessageMarkdown),
}Expand description
Variants§
Trait Implementations§
Source§impl Clone for InputRichMessage
impl Clone for InputRichMessage
Source§fn clone(&self) -> InputRichMessage
fn clone(&self) -> InputRichMessage
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 InputRichMessage
impl Debug for InputRichMessage
Source§impl Deserializable for InputRichMessage
impl Deserializable for InputRichMessage
Source§fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
fn deserialize(buf: Buffer<'_, '_>) -> Result<Self>
Read
Self from buf, advancing its position.Source§fn from_bytes(bytes: &[u8]) -> Result<Self>
fn from_bytes(bytes: &[u8]) -> Result<Self>
Convenience: deserialize from a byte slice.
Source§impl From<InputRichMessage> for InputRichMessage
impl From<InputRichMessage> for InputRichMessage
Source§fn from(x: InputRichMessage) -> Self
fn from(x: InputRichMessage) -> Self
Converts to this type from the input type.
Source§impl From<InputRichMessageHtml> for InputRichMessage
impl From<InputRichMessageHtml> for InputRichMessage
Source§fn from(x: InputRichMessageHtml) -> Self
fn from(x: InputRichMessageHtml) -> Self
Converts to this type from the input type.
Source§impl From<InputRichMessageMarkdown> for InputRichMessage
impl From<InputRichMessageMarkdown> for InputRichMessage
Source§fn from(x: InputRichMessageMarkdown) -> Self
fn from(x: InputRichMessageMarkdown) -> Self
Converts to this type from the input type.
Source§impl PartialEq for InputRichMessage
impl PartialEq for InputRichMessage
Source§fn eq(&self, other: &InputRichMessage) -> bool
fn eq(&self, other: &InputRichMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serializable for InputRichMessage
impl Serializable for InputRichMessage
impl StructuralPartialEq for InputRichMessage
Source§impl TryFrom<InputRichMessage> for InputRichMessage
impl TryFrom<InputRichMessage> for InputRichMessage
Source§type Error = InputRichMessage
type Error = InputRichMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<InputRichMessage> for InputRichMessageHtml
impl TryFrom<InputRichMessage> for InputRichMessageHtml
Source§type Error = InputRichMessage
type Error = InputRichMessage
The type returned in the event of a conversion error.
Source§impl TryFrom<InputRichMessage> for InputRichMessageMarkdown
impl TryFrom<InputRichMessage> for InputRichMessageMarkdown
Source§type Error = InputRichMessage
type Error = InputRichMessage
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for InputRichMessage
impl RefUnwindSafe for InputRichMessage
impl Send for InputRichMessage
impl Sync for InputRichMessage
impl Unpin for InputRichMessage
impl UnsafeUnpin for InputRichMessage
impl UnwindSafe for InputRichMessage
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