Struct slack_morphism::blocks::SlackActionsBlock
source · pub struct SlackActionsBlock {
pub block_id: Option<SlackBlockId>,
pub elements: Vec<SlackActionBlockElement>,
}Fields§
§block_id: Option<SlackBlockId>§elements: Vec<SlackActionBlockElement>Implementations§
source§impl SlackActionsBlock
impl SlackActionsBlock
pub fn new(elements: Vec<SlackActionBlockElement>) -> 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<SlackActionBlockElement>) -> &mut Self
pub fn with_elements(self, value: Vec<SlackActionBlockElement>) -> Self
Trait Implementations§
source§impl Clone for SlackActionsBlock
impl Clone for SlackActionsBlock
source§fn clone(&self) -> SlackActionsBlock
fn clone(&self) -> SlackActionsBlock
Returns a copy of the value. Read more
1.0.0 · 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 SlackActionsBlock
impl Debug for SlackActionsBlock
source§impl<'de> Deserialize<'de> for SlackActionsBlock
impl<'de> Deserialize<'de> for SlackActionsBlock
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<SlackActionsBlock> for SlackBlock
impl From<SlackActionsBlock> for SlackBlock
source§fn from(block: SlackActionsBlock) -> Self
fn from(block: SlackActionsBlock) -> Self
Converts to this type from the input type.
source§impl From<SlackActionsBlockInit> for SlackActionsBlock
impl From<SlackActionsBlockInit> for SlackActionsBlock
source§fn from(value: SlackActionsBlockInit) -> Self
fn from(value: SlackActionsBlockInit) -> Self
Converts to this type from the input type.
source§impl PartialEq<SlackActionsBlock> for SlackActionsBlock
impl PartialEq<SlackActionsBlock> for SlackActionsBlock
source§fn eq(&self, other: &SlackActionsBlock) -> bool
fn eq(&self, other: &SlackActionsBlock) -> bool
This method tests for
self and other values to be equal, and is used
by ==.