pub struct TextBlockObject {
pub type_filed: TextBlockType,
pub text: String,
pub emoji: Option<bool>,
pub verbatim: Option<bool>,
}Expand description
An object containing some text, formatted either as plain_text or using mrkdwn, our proprietary contribution to the much beloved Markdown standard.
See: https://api.slack.com/reference/block-kit/composition-objects#text
Fields§
§type_filed: TextBlockType§text: String§emoji: Option<bool>§verbatim: Option<bool>Implementations§
Source§impl TextBlockObject
impl TextBlockObject
pub fn builder( text_block_type: TextBlockType, text: String, ) -> TextBlockObjectBuilder
Trait Implementations§
Source§impl Debug for TextBlockObject
impl Debug for TextBlockObject
Source§impl Default for TextBlockObject
impl Default for TextBlockObject
Source§fn default() -> TextBlockObject
fn default() -> TextBlockObject
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TextBlockObject
impl<'de> Deserialize<'de> for TextBlockObject
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 TextBlockObject
impl PartialEq for TextBlockObject
Source§impl Serialize for TextBlockObject
impl Serialize for TextBlockObject
impl StructuralPartialEq for TextBlockObject
Auto Trait Implementations§
impl Freeze for TextBlockObject
impl RefUnwindSafe for TextBlockObject
impl Send for TextBlockObject
impl Sync for TextBlockObject
impl Unpin for TextBlockObject
impl UnwindSafe for TextBlockObject
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