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
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackBlockNumberInputElement
Auto Trait Implementations§
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