Struct slack_morphism::blocks::SlackInputBlock
source · pub struct SlackInputBlock {
pub block_id: Option<SlackBlockId>,
pub label: SlackBlockPlainTextOnly,
pub element: SlackInputBlockElement,
pub hint: Option<SlackBlockPlainTextOnly>,
pub optional: Option<bool>,
pub dispatch_action: Option<bool>,
}
Fields§
§block_id: Option<SlackBlockId>
§label: SlackBlockPlainTextOnly
§element: SlackInputBlockElement
§hint: Option<SlackBlockPlainTextOnly>
§optional: Option<bool>
§dispatch_action: Option<bool>
Implementations§
source§impl SlackInputBlock
impl SlackInputBlock
pub fn new( label: SlackBlockPlainTextOnly, element: SlackInputBlockElement ) -> 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 label(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn with_label(self, value: SlackBlockPlainTextOnly) -> Self
pub fn element(&mut self, value: SlackInputBlockElement) -> &mut Self
pub fn with_element(self, value: SlackInputBlockElement) -> Self
pub fn hint(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn reset_hint(&mut self) -> &mut Self
pub fn mopt_hint(&mut self, value: Option<SlackBlockPlainTextOnly>) -> &mut Self
pub fn with_hint(self, value: SlackBlockPlainTextOnly) -> Self
pub fn without_hint(self) -> Self
pub fn opt_hint(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn optional(&mut self, value: bool) -> &mut Self
pub fn reset_optional(&mut self) -> &mut Self
pub fn mopt_optional(&mut self, value: Option<bool>) -> &mut Self
pub fn with_optional(self, value: bool) -> Self
pub fn without_optional(self) -> Self
pub fn opt_optional(self, value: Option<bool>) -> Self
pub fn dispatch_action(&mut self, value: bool) -> &mut Self
pub fn reset_dispatch_action(&mut self) -> &mut Self
pub fn mopt_dispatch_action(&mut self, value: Option<bool>) -> &mut Self
pub fn with_dispatch_action(self, value: bool) -> Self
pub fn without_dispatch_action(self) -> Self
pub fn opt_dispatch_action(self, value: Option<bool>) -> Self
Trait Implementations§
source§impl Clone for SlackInputBlock
impl Clone for SlackInputBlock
source§fn clone(&self) -> SlackInputBlock
fn clone(&self) -> SlackInputBlock
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 SlackInputBlock
impl Debug for SlackInputBlock
source§impl<'de> Deserialize<'de> for SlackInputBlock
impl<'de> Deserialize<'de> for SlackInputBlock
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<SlackInputBlock> for SlackBlock
impl From<SlackInputBlock> for SlackBlock
source§fn from(block: SlackInputBlock) -> Self
fn from(block: SlackInputBlock) -> Self
Converts to this type from the input type.
source§impl From<SlackInputBlockInit> for SlackInputBlock
impl From<SlackInputBlockInit> for SlackInputBlock
source§fn from(value: SlackInputBlockInit) -> Self
fn from(value: SlackInputBlockInit) -> Self
Converts to this type from the input type.
source§impl PartialEq for SlackInputBlock
impl PartialEq for SlackInputBlock
source§fn eq(&self, other: &SlackInputBlock) -> bool
fn eq(&self, other: &SlackInputBlock) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SlackInputBlock
impl Serialize for SlackInputBlock
impl StructuralPartialEq for SlackInputBlock
Auto Trait Implementations§
impl RefUnwindSafe for SlackInputBlock
impl Send for SlackInputBlock
impl Sync for SlackInputBlock
impl Unpin for SlackInputBlock
impl UnwindSafe for SlackInputBlock
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