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