pub struct SlackRichTextQuote {
pub elements: Vec<SlackRichTextInlineElement>,
pub border: Option<u64>,
}Fields§
§elements: Vec<SlackRichTextInlineElement>§border: Option<u64>Implementations§
Source§impl SlackRichTextQuote
impl SlackRichTextQuote
Sourcepub fn new(elements: Vec<SlackRichTextInlineElement>) -> Self
pub fn new(elements: Vec<SlackRichTextInlineElement>) -> Self
Creates a new SlackRichTextQuote from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn elements(&mut self, value: Vec<SlackRichTextInlineElement>) -> &mut Self
pub fn elements(&mut self, value: Vec<SlackRichTextInlineElement>) -> &mut Self
Sets elements to value.
Sourcepub fn with_elements(self, value: Vec<SlackRichTextInlineElement>) -> Self
pub fn with_elements(self, value: Vec<SlackRichTextInlineElement>) -> Self
Returns self with elements set to value.
Sourcepub fn reset_border(&mut self) -> &mut Self
pub fn reset_border(&mut self) -> &mut Self
Sets border to None.
Sourcepub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
pub fn mopt_border(&mut self, value: Option<u64>) -> &mut Self
Sets border to the given Option.
Sourcepub fn with_border(self, value: u64) -> Self
pub fn with_border(self, value: u64) -> Self
Returns self with border set to Some(value).
Sourcepub fn without_border(self) -> Self
pub fn without_border(self) -> Self
Returns self with border set to None.
Sourcepub fn opt_border(self, value: Option<u64>) -> Self
pub fn opt_border(self, value: Option<u64>) -> Self
Returns self with border set to the given Option.
Trait Implementations§
Source§impl Clone for SlackRichTextQuote
impl Clone for SlackRichTextQuote
Source§impl Debug for SlackRichTextQuote
impl Debug for SlackRichTextQuote
Source§impl<'de> Deserialize<'de> for SlackRichTextQuote
impl<'de> Deserialize<'de> for SlackRichTextQuote
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<SlackRichTextQuote> for SlackRichTextElement
impl From<SlackRichTextQuote> for SlackRichTextElement
Source§fn from(element: SlackRichTextQuote) -> Self
fn from(element: SlackRichTextQuote) -> Self
Converts to this type from the input type.
Source§impl From<SlackRichTextQuoteInit> for SlackRichTextQuote
impl From<SlackRichTextQuoteInit> for SlackRichTextQuote
Source§fn from(value: SlackRichTextQuoteInit) -> Self
fn from(value: SlackRichTextQuoteInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackRichTextQuote
impl PartialEq for SlackRichTextQuote
Source§impl Serialize for SlackRichTextQuote
impl Serialize for SlackRichTextQuote
impl StructuralPartialEq for SlackRichTextQuote
Auto Trait Implementations§
impl Freeze for SlackRichTextQuote
impl RefUnwindSafe for SlackRichTextQuote
impl Send for SlackRichTextQuote
impl Sync for SlackRichTextQuote
impl Unpin for SlackRichTextQuote
impl UnsafeUnpin for SlackRichTextQuote
impl UnwindSafe for SlackRichTextQuote
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