pub enum Block {
Show 13 variants
Actions(Box<Actions>),
Context(Box<Context>),
ContextActions(Box<ContextActions>),
Divider(Box<Divider>),
File(Box<File>),
Header(Box<Header>),
Image(Box<Image>),
Input(Box<Input>),
Markdown(Box<Markdown>),
RichText(Box<RichText>),
Section(Box<Section>),
Table(Box<Table>),
Video(Box<Video>),
}Expand description
Objects that can be set to blocks in Message.
Variants§
Actions(Box<Actions>)
Actions block representation
Context(Box<Context>)
Context block representation
ContextActions(Box<ContextActions>)
Context actions block representation
Divider(Box<Divider>)
Divider block representation
File(Box<File>)
File block representation
Header(Box<Header>)
Header block representation
Image(Box<Image>)
Image block representation
Input(Box<Input>)
Input block representation
Markdown(Box<Markdown>)
Markdown block representation
RichText(Box<RichText>)
Rich text block representation
Section(Box<Section>)
Section block representation
Table(Box<Table>)
Table block representation
Video(Box<Video>)
Video block representation
Trait Implementations§
Source§impl From<ContextActions> for Block
impl From<ContextActions> for Block
Source§fn from(value: ContextActions) -> Self
fn from(value: ContextActions) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnwindSafe for Block
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)