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 for SlackActionsBlock
impl PartialEq for SlackActionsBlock
Source§impl Serialize for SlackActionsBlock
impl Serialize for SlackActionsBlock
impl StructuralPartialEq for SlackActionsBlock
Auto Trait Implementations§
impl Freeze for SlackActionsBlock
impl RefUnwindSafe for SlackActionsBlock
impl Send for SlackActionsBlock
impl Sync for SlackActionsBlock
impl Unpin for SlackActionsBlock
impl UnwindSafe for SlackActionsBlock
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)