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
Sourcepub fn new(elements: Vec<SlackContextActionBlockElement>) -> Self
pub fn new(elements: Vec<SlackContextActionBlockElement>) -> Self
Creates a new SlackContextActionsBlock from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
pub fn block_id(&mut self, value: SlackBlockId) -> &mut Self
Sets block_id to Some(value).
Sourcepub fn reset_block_id(&mut self) -> &mut Self
pub fn reset_block_id(&mut self) -> &mut Self
Sets block_id to None.
Sourcepub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
pub fn mopt_block_id(&mut self, value: Option<SlackBlockId>) -> &mut Self
Sets block_id to the given Option.
Sourcepub fn with_block_id(self, value: SlackBlockId) -> Self
pub fn with_block_id(self, value: SlackBlockId) -> Self
Returns self with block_id set to Some(value).
Sourcepub fn without_block_id(self) -> Self
pub fn without_block_id(self) -> Self
Returns self with block_id set to None.
Sourcepub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
pub fn opt_block_id(self, value: Option<SlackBlockId>) -> Self
Returns self with block_id set to the given Option.
Sourcepub fn elements(
&mut self,
value: Vec<SlackContextActionBlockElement>,
) -> &mut Self
pub fn elements( &mut self, value: Vec<SlackContextActionBlockElement>, ) -> &mut Self
Sets elements to value.
Sourcepub fn with_elements(self, value: Vec<SlackContextActionBlockElement>) -> Self
pub fn with_elements(self, value: Vec<SlackContextActionBlockElement>) -> Self
Returns self with elements set to value.
Trait Implementations§
Source§impl Clone for SlackContextActionsBlock
impl Clone for SlackContextActionsBlock
Source§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