pub struct SlackContextActionsBlock {
pub block_id: Option<SlackBlockId>,
pub elements: Vec<SlackContextActionBlockElement>,
}Fields§
§block_id: Option<SlackBlockId>§elements: Vec<SlackContextActionBlockElement>Implementations§
Source§impl SlackContextActionsBlock
impl SlackContextActionsBlock
pub fn new(elements: Vec<SlackContextActionBlockElement>) -> Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn without_block_id(self) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn elements( &mut self, value: Vec<SlackContextActionBlockElement>, ) -> &mut Self
pub fn with_elements(self, value: Vec<SlackContextActionBlockElement>) -> Self
Trait Implementations§
Source§impl Clone for SlackContextActionsBlock
impl Clone for SlackContextActionsBlock
Source§fn clone(&self) -> SlackContextActionsBlock
fn clone(&self) -> SlackContextActionsBlock
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SlackContextActionsBlock
impl Debug for SlackContextActionsBlock
Source§impl<'de> Deserialize<'de> for SlackContextActionsBlock
impl<'de> Deserialize<'de> for SlackContextActionsBlock
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<SlackContextActionsBlock> for SlackBlock
impl From<SlackContextActionsBlock> for SlackBlock
Source§fn from(block: SlackContextActionsBlock) -> Self
fn from(block: SlackContextActionsBlock) -> Self
Converts to this type from the input type.
Source§impl From<SlackContextActionsBlockInit> for SlackContextActionsBlock
impl From<SlackContextActionsBlockInit> for SlackContextActionsBlock
Source§fn from(value: SlackContextActionsBlockInit) -> Self
fn from(value: SlackContextActionsBlockInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackContextActionsBlock
impl PartialEq for SlackContextActionsBlock
Source§impl Serialize for SlackContextActionsBlock
impl Serialize for SlackContextActionsBlock
impl StructuralPartialEq for SlackContextActionsBlock
Auto Trait Implementations§
impl Freeze for SlackContextActionsBlock
impl RefUnwindSafe for SlackContextActionsBlock
impl Send for SlackContextActionsBlock
impl Sync for SlackContextActionsBlock
impl Unpin for SlackContextActionsBlock
impl UnsafeUnpin for SlackContextActionsBlock
impl UnwindSafe for SlackContextActionsBlock
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