pub struct MessageFormat {
pub bold: Option<Vec<MessageFormatStruct>>,
pub italic: Option<Vec<MessageFormatStruct>>,
pub underline: Option<Vec<MessageFormatStruct>>,
pub strikethrough: Option<Vec<MessageFormatStruct>>,
pub link: Option<Vec<MessageFormatStructLink>>,
pub mention: Option<Vec<MessageFormatStruct>>,
pub inline_code: Option<Vec<MessageFormatStruct>>,
pub pre: Option<Vec<MessageFormatStructPre>>,
pub ordered_list: Option<Vec<MessageFormatStruct>>,
pub quote: Option<Vec<MessageFormatStruct>>,
}Expand description
Array of message formats
Fields§
§bold: Option<Vec<MessageFormatStruct>>§italic: Option<Vec<MessageFormatStruct>>§underline: Option<Vec<MessageFormatStruct>>§strikethrough: Option<Vec<MessageFormatStruct>>§link: Option<Vec<MessageFormatStructLink>>§mention: Option<Vec<MessageFormatStruct>>§inline_code: Option<Vec<MessageFormatStruct>>§pre: Option<Vec<MessageFormatStructPre>>§ordered_list: Option<Vec<MessageFormatStruct>>§quote: Option<Vec<MessageFormatStruct>>Trait Implementations§
Source§impl Clone for MessageFormat
impl Clone for MessageFormat
Source§fn clone(&self) -> MessageFormat
fn clone(&self) -> MessageFormat
Returns a duplicate 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 MessageFormat
impl Debug for MessageFormat
Source§impl Default for MessageFormat
impl Default for MessageFormat
Source§fn default() -> MessageFormat
fn default() -> MessageFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageFormat
impl<'de> Deserialize<'de> for MessageFormat
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 PartialEq for MessageFormat
impl PartialEq for MessageFormat
Source§impl Serialize for MessageFormat
impl Serialize for MessageFormat
impl StructuralPartialEq for MessageFormat
Auto Trait Implementations§
impl Freeze for MessageFormat
impl RefUnwindSafe for MessageFormat
impl Send for MessageFormat
impl Sync for MessageFormat
impl Unpin for MessageFormat
impl UnwindSafe for MessageFormat
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