pub struct SlackText {
pub text_type: SlackTextType,
pub text: String,
pub emoji: Option<bool>,
}Expand description
A text object with formatting options for Slack Block Kit.
Fields§
§text_type: SlackTextTypeThe type of text formatting: plain text or markdown.
text: StringThe actual text content.
emoji: Option<bool>Whether emoji should be rendered in plain text.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SlackText
impl RefUnwindSafe for SlackText
impl Send for SlackText
impl Sync for SlackText
impl Unpin for SlackText
impl UnsafeUnpin for SlackText
impl UnwindSafe for SlackText
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