pub struct SlackBlockPlainTextInputElement {
pub action_id: SlackActionId,
pub placeholder: SlackBlockPlainTextOnly,
pub initial_value: Option<String>,
pub multiline: Option<bool>,
pub min_length: Option<u64>,
pub max_length: Option<u64>,
}
Fields
action_id: SlackActionId
placeholder: SlackBlockPlainTextOnly
initial_value: Option<String>
multiline: Option<bool>
min_length: Option<u64>
max_length: Option<u64>
Implementations
pub fn new(
action_id: SlackActionId,
placeholder: SlackBlockPlainTextOnly
) -> SlackBlockPlainTextInputElement
pub fn placeholder(
&mut self,
value: SlackBlockPlainTextOnly
) -> &mut SlackBlockPlainTextInputElement
pub fn with_placeholder(
self,
value: SlackBlockPlainTextOnly
) -> SlackBlockPlainTextInputElement
pub fn mopt_initial_value(
&mut self,
value: Option<String>
) -> &mut SlackBlockPlainTextInputElement
pub fn mopt_multiline(
&mut self,
value: Option<bool>
) -> &mut SlackBlockPlainTextInputElement
pub fn mopt_min_length(
&mut self,
value: Option<u64>
) -> &mut SlackBlockPlainTextInputElement
pub fn mopt_max_length(
&mut self,
value: Option<u64>
) -> &mut SlackBlockPlainTextInputElement
Trait Implementations
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockPlainTextInputElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<SlackBlockPlainTextInputElement, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations
impl Send for SlackBlockPlainTextInputElement
impl Sync for SlackBlockPlainTextInputElement
impl Unpin for SlackBlockPlainTextInputElement
Blanket Implementations
Mutably borrows from an owned value. Read more