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
sourceimpl 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
sourceimpl Clone for SlackActionsBlock
impl Clone for SlackActionsBlock
sourcefn clone(&self) -> SlackActionsBlock
fn clone(&self) -> SlackActionsBlock
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for SlackActionsBlock
impl Debug for SlackActionsBlock
sourceimpl<'de> Deserialize<'de> for SlackActionsBlock
impl<'de> Deserialize<'de> for SlackActionsBlock
sourcefn 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
sourceimpl From<SlackActionsBlock> for SlackBlock
impl From<SlackActionsBlock> for SlackBlock
sourcefn from(block: SlackActionsBlock) -> Self
fn from(block: SlackActionsBlock) -> Self
Converts to this type from the input type.
sourceimpl From<SlackActionsBlockInit> for SlackActionsBlock
impl From<SlackActionsBlockInit> for SlackActionsBlock
sourcefn from(value: SlackActionsBlockInit) -> Self
fn from(value: SlackActionsBlockInit) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<SlackActionsBlock> for SlackActionsBlock
impl PartialEq<SlackActionsBlock> for SlackActionsBlock
sourcefn eq(&self, other: &SlackActionsBlock) -> bool
fn eq(&self, other: &SlackActionsBlock) -> bool
sourceimpl Serialize for SlackActionsBlock
impl Serialize for SlackActionsBlock
impl StructuralPartialEq for SlackActionsBlock
Auto Trait Implementations
impl RefUnwindSafe for SlackActionsBlock
impl Send for SlackActionsBlock
impl Sync for SlackActionsBlock
impl Unpin for SlackActionsBlock
impl UnwindSafe for SlackActionsBlock
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more