[][src]Struct slack_morphism_models::SlackMessageContent

pub struct SlackMessageContent {
    pub text: Option<String>,
    pub blocks: Option<Vec<SlackBlock>>,
}

Fields

text: Option<String>blocks: Option<Vec<SlackBlock>>

Implementations

impl SlackMessageContent[src]

pub fn new() -> Self[src]

pub fn text(&mut self, value: String) -> &mut Self[src]

pub fn reset_text(&mut self) -> &mut Self[src]

pub fn mopt_text(&mut self, value: Option<String>) -> &mut Self[src]

pub fn with_text(self, value: String) -> Self[src]

pub fn without_text(self) -> Self[src]

pub fn opt_text(self, value: Option<String>) -> Self[src]

pub fn blocks(&mut self, value: Vec<SlackBlock>) -> &mut Self[src]

pub fn reset_blocks(&mut self) -> &mut Self[src]

pub fn mopt_blocks(&mut self, value: Option<Vec<SlackBlock>>) -> &mut Self[src]

pub fn with_blocks(self, value: Vec<SlackBlock>) -> Self[src]

pub fn without_blocks(self) -> Self[src]

pub fn opt_blocks(self, value: Option<Vec<SlackBlock>>) -> Self[src]

Trait Implementations

impl Clone for SlackMessageContent[src]

impl Debug for SlackMessageContent[src]

impl<'de> Deserialize<'de> for SlackMessageContent[src]

impl From<SlackMessageContentInit> for SlackMessageContent[src]

impl PartialEq<SlackMessageContent> for SlackMessageContent[src]

impl Serialize for SlackMessageContent[src]

impl StructuralPartialEq for SlackMessageContent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.