pub struct SlackBlockNumberInputElement {
pub action_id: SlackActionId,
pub is_decimal_allowed: bool,
pub focus_on_load: Option<bool>,
pub placeholder: Option<SlackBlockPlainTextOnly>,
pub initial_value: Option<String>,
pub min_value: Option<String>,
pub max_value: Option<String>,
}
Fields§
§action_id: SlackActionId
§is_decimal_allowed: bool
§focus_on_load: Option<bool>
§placeholder: Option<SlackBlockPlainTextOnly>
§initial_value: Option<String>
§min_value: Option<String>
§max_value: Option<String>
Implementations§
Source§impl SlackBlockNumberInputElement
impl SlackBlockNumberInputElement
pub fn new(action_id: SlackActionId, is_decimal_allowed: bool) -> Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn with_action_id(self, value: SlackActionId) -> Self
pub fn is_decimal_allowed(&mut self, value: bool) -> &mut Self
pub fn with_is_decimal_allowed(self, value: bool) -> 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
pub fn initial_value(&mut self, value: String) -> &mut Self
pub fn reset_initial_value(&mut self) -> &mut Self
pub fn mopt_initial_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_initial_value(self, value: String) -> Self
pub fn without_initial_value(self) -> Self
pub fn opt_initial_value(self, value: Option<String>) -> Self
pub fn min_value(&mut self, value: String) -> &mut Self
pub fn reset_min_value(&mut self) -> &mut Self
pub fn mopt_min_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_min_value(self, value: String) -> Self
pub fn without_min_value(self) -> Self
pub fn opt_min_value(self, value: Option<String>) -> Self
pub fn max_value(&mut self, value: String) -> &mut Self
pub fn reset_max_value(&mut self) -> &mut Self
pub fn mopt_max_value(&mut self, value: Option<String>) -> &mut Self
pub fn with_max_value(self, value: String) -> Self
pub fn without_max_value(self) -> Self
pub fn opt_max_value(self, value: Option<String>) -> Self
Trait Implementations§
Source§impl Clone for SlackBlockNumberInputElement
impl Clone for SlackBlockNumberInputElement
Source§fn clone(&self) -> SlackBlockNumberInputElement
fn clone(&self) -> SlackBlockNumberInputElement
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 SlackBlockNumberInputElement
impl Debug for SlackBlockNumberInputElement
Source§impl<'de> Deserialize<'de> for SlackBlockNumberInputElement
impl<'de> Deserialize<'de> for SlackBlockNumberInputElement
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<SlackBlockNumberInputElement> for SlackActionBlockElement
impl From<SlackBlockNumberInputElement> for SlackActionBlockElement
Source§fn from(element: SlackBlockNumberInputElement) -> Self
fn from(element: SlackBlockNumberInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockNumberInputElement> for SlackInputBlockElement
impl From<SlackBlockNumberInputElement> for SlackInputBlockElement
Source§fn from(element: SlackBlockNumberInputElement) -> Self
fn from(element: SlackBlockNumberInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockNumberInputElement> for SlackSectionBlockElement
impl From<SlackBlockNumberInputElement> for SlackSectionBlockElement
Source§fn from(element: SlackBlockNumberInputElement) -> Self
fn from(element: SlackBlockNumberInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockNumberInputElementInit> for SlackBlockNumberInputElement
impl From<SlackBlockNumberInputElementInit> for SlackBlockNumberInputElement
Source§fn from(value: SlackBlockNumberInputElementInit) -> Self
fn from(value: SlackBlockNumberInputElementInit) -> Self
Converts to this type from the input type.
Source§impl PartialEq for SlackBlockNumberInputElement
impl PartialEq for SlackBlockNumberInputElement
Source§fn eq(&self, other: &SlackBlockNumberInputElement) -> bool
fn eq(&self, other: &SlackBlockNumberInputElement) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for SlackBlockNumberInputElement
Auto Trait Implementations§
impl Freeze for SlackBlockNumberInputElement
impl RefUnwindSafe for SlackBlockNumberInputElement
impl Send for SlackBlockNumberInputElement
impl Sync for SlackBlockNumberInputElement
impl Unpin for SlackBlockNumberInputElement
impl UnwindSafe for SlackBlockNumberInputElement
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
)