pub enum Layouts {
SingleBlock(Box<Block>),
MultipleBlocks(Vec<Block>),
BlocksArray(MessagePayloads),
}Expand description
The type that represents a composition object.
https://api.slack.com/reference/surfaces/formatting#rich-layouts
Variants§
SingleBlock(Box<Block>)
Defining a single block.
https://api.slack.com/reference/surfaces/formatting#define_block
MultipleBlocks(Vec<Block>)
Stacking multiple blocks.
https://api.slack.com/reference/surfaces/formatting#stack_of_blocks
BlocksArray(MessagePayloads)
Adding your blocks array.
https://api.slack.com/reference/surfaces/formatting#add_blocks_array
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Layouts
impl RefUnwindSafe for Layouts
impl Send for Layouts
impl Sync for Layouts
impl Unpin for Layouts
impl UnwindSafe for Layouts
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