Enum slack_blocks::blocks::Block [−][src]
pub enum Block<'a> {
Section(Contents),
Divider,
Image(Contents),
Actions(Contents<'a>),
Context(Contents),
Input(Contents<'a>),
File(Contents),
}Variants
Section(Contents)Expand description
Divider Block
A content divider, like an <hr>,
to split up different blocks inside of a message.
The divider block is nice and neat, requiring no fields.
Image(Contents)Actions(Contents<'a>)Context(Contents)Input(Contents<'a>)File(Contents)Implementations
Trait Implementations
impl<'de, 'a> Deserialize<'de> for Block<'a>[src]
impl<'de, 'a> Deserialize<'de> for Block<'a>[src]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<'a> RefUnwindSafe for Block<'a>
impl<'a> Send for Block<'a>
impl<'a> Sync for Block<'a>
impl<'a> Unpin for Block<'a>
impl<'a> UnwindSafe for Block<'a>
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,