Enum slack_blocks::text::Text [−][src]
Expand description
Text Object
An object containing some text,
formatted either as plain_text
or using mrkdwn
🔗,
our proprietary textual markup that’s just different enough
from Markdown to frustrate you.
Variants
Mrkdwn(Contents)
Markdown text
Plain(Contents)
Plain text
Implementations
Build a new Text object
See TextBuilder for example
Clone the data behind a reference, then convert it into
a Text
Arguments
contents
- Anything that can be cloned into a type that is convertable to aText
- this includes thePlain
andMrkdwn
contents structs. Notably, this doesn’t include a conversion directly from a reference to aString
or a&str
- that’s because assuming which kind of text a string represents could lead to unexpected behavior when that kind of text isn’t valid.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Text
impl UnwindSafe for Text
Blanket Implementations
Mutably borrows from an owned value. Read more