pub struct SlackDataTableActionCell {
pub element: SlackDataTableActionElement,
pub fallback: Option<Box<SlackDataTableCell>>,
}Expand description
A button in a cell; fallback is a raw_text or raw_number cell shown
by clients that do not support action cells.
Fields§
§element: SlackDataTableActionElement§fallback: Option<Box<SlackDataTableCell>>Implementations§
Source§impl SlackDataTableActionCell
impl SlackDataTableActionCell
Sourcepub fn new(element: SlackDataTableActionElement) -> Self
pub fn new(element: SlackDataTableActionElement) -> Self
Creates a new SlackDataTableActionCell from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn element(&mut self, value: SlackDataTableActionElement) -> &mut Self
pub fn element(&mut self, value: SlackDataTableActionElement) -> &mut Self
Sets element to value.
Sourcepub fn with_element(self, value: SlackDataTableActionElement) -> Self
pub fn with_element(self, value: SlackDataTableActionElement) -> Self
Returns self with element set to value.
Sourcepub fn fallback(&mut self, value: Box<SlackDataTableCell>) -> &mut Self
pub fn fallback(&mut self, value: Box<SlackDataTableCell>) -> &mut Self
Sets fallback to Some(value).
Sourcepub fn reset_fallback(&mut self) -> &mut Self
pub fn reset_fallback(&mut self) -> &mut Self
Sets fallback to None.
Sourcepub fn mopt_fallback(
&mut self,
value: Option<Box<SlackDataTableCell>>,
) -> &mut Self
pub fn mopt_fallback( &mut self, value: Option<Box<SlackDataTableCell>>, ) -> &mut Self
Sets fallback to the given Option.
Sourcepub fn with_fallback(self, value: Box<SlackDataTableCell>) -> Self
pub fn with_fallback(self, value: Box<SlackDataTableCell>) -> Self
Returns self with fallback set to Some(value).
Sourcepub fn without_fallback(self) -> Self
pub fn without_fallback(self) -> Self
Returns self with fallback set to None.
Sourcepub fn opt_fallback(self, value: Option<Box<SlackDataTableCell>>) -> Self
pub fn opt_fallback(self, value: Option<Box<SlackDataTableCell>>) -> Self
Returns self with fallback set to the given Option.
Trait Implementations§
Source§impl Clone for SlackDataTableActionCell
impl Clone for SlackDataTableActionCell
Source§impl Debug for SlackDataTableActionCell
impl Debug for SlackDataTableActionCell
Source§impl<'de> Deserialize<'de> for SlackDataTableActionCell
impl<'de> Deserialize<'de> for SlackDataTableActionCell
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<SlackDataTableActionCell> for SlackDataTableCell
impl From<SlackDataTableActionCell> for SlackDataTableCell
Source§fn from(cell: SlackDataTableActionCell) -> Self
fn from(cell: SlackDataTableActionCell) -> Self
Converts to this type from the input type.
Source§impl From<SlackDataTableActionCellInit> for SlackDataTableActionCell
impl From<SlackDataTableActionCellInit> for SlackDataTableActionCell
Source§fn from(value: SlackDataTableActionCellInit) -> Self
fn from(value: SlackDataTableActionCellInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackDataTableActionCell
impl PartialEq for SlackDataTableActionCell
Source§impl Serialize for SlackDataTableActionCell
impl Serialize for SlackDataTableActionCell
impl StructuralPartialEq for SlackDataTableActionCell
Auto Trait Implementations§
impl Freeze for SlackDataTableActionCell
impl RefUnwindSafe for SlackDataTableActionCell
impl Send for SlackDataTableActionCell
impl Sync for SlackDataTableActionCell
impl Unpin for SlackDataTableActionCell
impl UnsafeUnpin for SlackDataTableActionCell
impl UnwindSafe for SlackDataTableActionCell
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