pub struct SlackRichTextPreformatted {
pub elements: Vec<SlackRichTextInlineElement>,
pub border: Option<u64>,
pub language: Option<String>,
}Fields§
§elements: Vec<SlackRichTextInlineElement>§border: Option<u64>§language: Option<String>Implementations§
Source§impl SlackRichTextPreformatted
impl SlackRichTextPreformatted
pub fn new(elements: Vec<SlackRichTextInlineElement>) -> Self
pub fn elements(&mut self, value: Vec<SlackRichTextInlineElement>) -> &mut Self
pub fn with_elements(self, value: Vec<SlackRichTextInlineElement>) -> Self
pub fn border(&mut self, value: u64) -> &mut Self
pub fn reset_border(&mut self) -> &mut Self
pub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
pub fn with_border(self, value: u64) -> Self
pub fn without_border(self) -> Self
pub fn opt_border(self, value: Option<u64>) -> Self
pub fn language(&mut self, value: String) -> &mut Self
pub fn reset_language(&mut self) -> &mut Self
pub fn mopt_language(&mut self, value: Option<String>) -> &mut Self
pub fn with_language(self, value: String) -> Self
pub fn without_language(self) -> Self
pub fn opt_language(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for SlackRichTextPreformatted
impl Clone for SlackRichTextPreformatted
Source§fn clone(&self) -> SlackRichTextPreformatted
fn clone(&self) -> SlackRichTextPreformatted
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 SlackRichTextPreformatted
impl Debug for SlackRichTextPreformatted
Source§impl<'de> Deserialize<'de> for SlackRichTextPreformatted
impl<'de> Deserialize<'de> for SlackRichTextPreformatted
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<SlackRichTextPreformatted> for SlackRichTextElement
impl From<SlackRichTextPreformatted> for SlackRichTextElement
Source§fn from(element: SlackRichTextPreformatted) -> Self
fn from(element: SlackRichTextPreformatted) -> Self
Converts to this type from the input type.
Source§impl From<SlackRichTextPreformattedInit> for SlackRichTextPreformatted
impl From<SlackRichTextPreformattedInit> for SlackRichTextPreformatted
Source§fn from(value: SlackRichTextPreformattedInit) -> Self
fn from(value: SlackRichTextPreformattedInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackRichTextPreformatted
Auto Trait Implementations§
impl Freeze for SlackRichTextPreformatted
impl RefUnwindSafe for SlackRichTextPreformatted
impl Send for SlackRichTextPreformatted
impl Sync for SlackRichTextPreformatted
impl Unpin for SlackRichTextPreformatted
impl UnsafeUnpin for SlackRichTextPreformatted
impl UnwindSafe for SlackRichTextPreformatted
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