pub enum DataTableCell {
RawText(RawTextCell),
RawNumber(RawNumberCell),
RichText(RichTextBlock),
ActionCell(ActionCell),
Unknown(Value),
}Expand description
A cell in a data table block. https://docs.slack.dev/reference/block-kit/blocks/data-table-block
Variants§
RawText(RawTextCell)
RawNumber(RawNumberCell)
RichText(RichTextBlock)
ActionCell(ActionCell)
Unknown(Value)
A kind this crate does not know. Keeps the received JSON and writes it back unchanged.
Trait Implementations§
Source§impl Clone for DataTableCell
impl Clone for DataTableCell
Source§impl Debug for DataTableCell
impl Debug for DataTableCell
Source§impl<'de> Deserialize<'de> for DataTableCell
impl<'de> Deserialize<'de> for DataTableCell
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ActionCell> for DataTableCell
impl From<ActionCell> for DataTableCell
Source§fn from(value: ActionCell) -> Self
fn from(value: ActionCell) -> Self
Converts to this type from the input type.
Source§impl From<RawNumberCell> for DataTableCell
impl From<RawNumberCell> for DataTableCell
Source§fn from(value: RawNumberCell) -> Self
fn from(value: RawNumberCell) -> Self
Converts to this type from the input type.
Source§impl From<RawTextCell> for DataTableCell
impl From<RawTextCell> for DataTableCell
Source§fn from(value: RawTextCell) -> Self
fn from(value: RawTextCell) -> Self
Converts to this type from the input type.
Source§impl From<RichTextBlock> for DataTableCell
impl From<RichTextBlock> for DataTableCell
Source§fn from(value: RichTextBlock) -> Self
fn from(value: RichTextBlock) -> Self
Converts to this type from the input type.
Source§impl PartialEq for DataTableCell
impl PartialEq for DataTableCell
Source§impl Serialize for DataTableCell
impl Serialize for DataTableCell
impl StructuralPartialEq for DataTableCell
Auto Trait Implementations§
impl Freeze for DataTableCell
impl RefUnwindSafe for DataTableCell
impl Send for DataTableCell
impl Sync for DataTableCell
impl Unpin for DataTableCell
impl UnsafeUnpin for DataTableCell
impl UnwindSafe for DataTableCell
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