pub struct SlackBlockRichTextInputElement {
pub action_id: SlackActionId,
pub initial_value: Option<SlackRichTextBlock>,
pub focus_on_load: Option<bool>,
pub placeholder: Option<SlackBlockPlainTextOnly>,
}Expand description
- https://api.slack.com/reference/block-kit/block-elements#rich_text_input
Fields§
§action_id: SlackActionId§initial_value: Option<SlackRichTextBlock>§focus_on_load: Option<bool>§placeholder: Option<SlackBlockPlainTextOnly>Implementations§
Source§impl SlackBlockRichTextInputElement
impl SlackBlockRichTextInputElement
pub fn new(action_id: SlackActionId) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn initial_value(&mut self, value: SlackRichTextBlock) -> &mut Self
pub fn reset_initial_value(&mut self) -> &mut Self
pub fn mopt_initial_value( &mut self, value: Option<SlackRichTextBlock>, ) -> &mut Self
pub fn with_initial_value(self, value: SlackRichTextBlock) -> Self
pub fn without_initial_value(self) -> Self
pub fn opt_initial_value(self, value: Option<SlackRichTextBlock>) -> Self
pub fn focus_on_load(&mut self, value: bool) -> &mut Self
pub fn reset_focus_on_load(&mut self) -> &mut Self
pub fn mopt_focus_on_load(&mut self, value: Option<bool>) -> &mut Self
pub fn with_focus_on_load(self, value: bool) -> Self
pub fn without_focus_on_load(self) -> Self
pub fn opt_focus_on_load(self, value: Option<bool>) -> Self
pub fn placeholder(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn reset_placeholder(&mut self) -> &mut Self
pub fn mopt_placeholder( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
pub fn with_placeholder(self, value: SlackBlockPlainTextOnly) -> Self
pub fn without_placeholder(self) -> Self
pub fn opt_placeholder(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Trait Implementations§
Source§impl Clone for SlackBlockRichTextInputElement
impl Clone for SlackBlockRichTextInputElement
Source§fn clone(&self) -> SlackBlockRichTextInputElement
fn clone(&self) -> SlackBlockRichTextInputElement
Returns a duplicate 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<'de> Deserialize<'de> for SlackBlockRichTextInputElement
impl<'de> Deserialize<'de> for SlackBlockRichTextInputElement
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<SlackBlockRichTextInputElement> for SlackInputBlockElement
impl From<SlackBlockRichTextInputElement> for SlackInputBlockElement
Source§fn from(element: SlackBlockRichTextInputElement) -> Self
fn from(element: SlackBlockRichTextInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockRichTextInputElementInit> for SlackBlockRichTextInputElement
impl From<SlackBlockRichTextInputElementInit> for SlackBlockRichTextInputElement
Source§fn from(value: SlackBlockRichTextInputElementInit) -> Self
fn from(value: SlackBlockRichTextInputElementInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackBlockRichTextInputElement
impl PartialEq for SlackBlockRichTextInputElement
Source§fn eq(&self, other: &SlackBlockRichTextInputElement) -> bool
fn eq(&self, other: &SlackBlockRichTextInputElement) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlackBlockRichTextInputElement
Auto Trait Implementations§
impl Freeze for SlackBlockRichTextInputElement
impl RefUnwindSafe for SlackBlockRichTextInputElement
impl Send for SlackBlockRichTextInputElement
impl Sync for SlackBlockRichTextInputElement
impl Unpin for SlackBlockRichTextInputElement
impl UnsafeUnpin for SlackBlockRichTextInputElement
impl UnwindSafe for SlackBlockRichTextInputElement
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