pub struct SlackBlockMarkDownText {
pub text: String,
pub verbatim: Option<bool>,
}
Expand description
- ‘mrkdwn’ type of https://api.slack.com/reference/block-kit/composition-objects#text
Fields§
§text: String
§verbatim: Option<bool>
Implementations§
Source§impl SlackBlockMarkDownText
impl SlackBlockMarkDownText
pub fn new(text: String) -> Self
pub fn text(&mut self, value: String) -> &mut Self
pub fn with_text(self, value: String) -> Self
pub fn verbatim(&mut self, value: bool) -> &mut Self
pub fn reset_verbatim(&mut self) -> &mut Self
pub fn mopt_verbatim(&mut self, value: Option<bool>) -> &mut Self
pub fn with_verbatim(self, value: bool) -> Self
pub fn without_verbatim(self) -> Self
pub fn opt_verbatim(self, value: Option<bool>) -> Self
Source§impl SlackBlockMarkDownText
impl SlackBlockMarkDownText
pub fn as_block_text(&self) -> SlackBlockText
Trait Implementations§
Source§impl Clone for SlackBlockMarkDownText
impl Clone for SlackBlockMarkDownText
Source§fn clone(&self) -> SlackBlockMarkDownText
fn clone(&self) -> SlackBlockMarkDownText
Returns a copy 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 SlackBlockMarkDownText
impl Debug for SlackBlockMarkDownText
Source§impl<'de> Deserialize<'de> for SlackBlockMarkDownText
impl<'de> Deserialize<'de> for SlackBlockMarkDownText
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<&str> for SlackBlockMarkDownText
impl From<&str> for SlackBlockMarkDownText
Source§impl From<SlackBlockMarkDownText> for SlackBlockText
impl From<SlackBlockMarkDownText> for SlackBlockText
Source§fn from(text: SlackBlockMarkDownText) -> Self
fn from(text: SlackBlockMarkDownText) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockMarkDownText> for SlackContextBlockElement
impl From<SlackBlockMarkDownText> for SlackContextBlockElement
Source§fn from(text: SlackBlockMarkDownText) -> Self
fn from(text: SlackBlockMarkDownText) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockMarkDownTextInit> for SlackBlockMarkDownText
impl From<SlackBlockMarkDownTextInit> for SlackBlockMarkDownText
Source§fn from(value: SlackBlockMarkDownTextInit) -> Self
fn from(value: SlackBlockMarkDownTextInit) -> Self
Converts to this type from the input type.
Source§impl From<String> for SlackBlockMarkDownText
impl From<String> for SlackBlockMarkDownText
Source§impl PartialEq for SlackBlockMarkDownText
impl PartialEq for SlackBlockMarkDownText
Source§impl Serialize for SlackBlockMarkDownText
impl Serialize for SlackBlockMarkDownText
impl StructuralPartialEq for SlackBlockMarkDownText
Auto Trait Implementations§
impl Freeze for SlackBlockMarkDownText
impl RefUnwindSafe for SlackBlockMarkDownText
impl Send for SlackBlockMarkDownText
impl Sync for SlackBlockMarkDownText
impl Unpin for SlackBlockMarkDownText
impl UnwindSafe for SlackBlockMarkDownText
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)