pub struct SlackBlockUrlInputElement {
pub action_id: SlackActionId,
pub placeholder: Option<SlackBlockPlainTextOnly>,
pub initial_value: Option<String>,
}Fields§
§action_id: SlackActionId§placeholder: Option<SlackBlockPlainTextOnly>§initial_value: Option<String>Implementations§
Source§impl SlackBlockUrlInputElement
impl SlackBlockUrlInputElement
Sourcepub fn new(action_id: SlackActionId) -> Self
pub fn new(action_id: SlackActionId) -> Self
Creates a new SlackBlockUrlInputElement from its required fields. Option fields start as None, and fields with #[default] take their default.
Sourcepub fn action_id(&mut self, value: SlackActionId) -> &mut Self
pub fn action_id(&mut self, value: SlackActionId) -> &mut Self
Sets action_id to value.
Sourcepub fn with_action_id(self, value: SlackActionId) -> Self
pub fn with_action_id(self, value: SlackActionId) -> Self
Returns self with action_id set to value.
Sourcepub fn placeholder(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
pub fn placeholder(&mut self, value: SlackBlockPlainTextOnly) -> &mut Self
Sets placeholder to Some(value).
Sourcepub fn reset_placeholder(&mut self) -> &mut Self
pub fn reset_placeholder(&mut self) -> &mut Self
Sets placeholder to None.
Sourcepub fn mopt_placeholder(
&mut self,
value: Option<SlackBlockPlainTextOnly>,
) -> &mut Self
pub fn mopt_placeholder( &mut self, value: Option<SlackBlockPlainTextOnly>, ) -> &mut Self
Sets placeholder to the given Option.
Sourcepub fn with_placeholder(self, value: SlackBlockPlainTextOnly) -> Self
pub fn with_placeholder(self, value: SlackBlockPlainTextOnly) -> Self
Returns self with placeholder set to Some(value).
Sourcepub fn without_placeholder(self) -> Self
pub fn without_placeholder(self) -> Self
Returns self with placeholder set to None.
Sourcepub fn opt_placeholder(self, value: Option<SlackBlockPlainTextOnly>) -> Self
pub fn opt_placeholder(self, value: Option<SlackBlockPlainTextOnly>) -> Self
Returns self with placeholder set to the given Option.
Sourcepub fn initial_value(&mut self, value: String) -> &mut Self
pub fn initial_value(&mut self, value: String) -> &mut Self
Sets initial_value to Some(value).
Sourcepub fn reset_initial_value(&mut self) -> &mut Self
pub fn reset_initial_value(&mut self) -> &mut Self
Sets initial_value to None.
Sourcepub fn mopt_initial_value(&mut self, value: Option<String>) -> &mut Self
pub fn mopt_initial_value(&mut self, value: Option<String>) -> &mut Self
Sets initial_value to the given Option.
Sourcepub fn with_initial_value(self, value: String) -> Self
pub fn with_initial_value(self, value: String) -> Self
Returns self with initial_value set to Some(value).
Sourcepub fn without_initial_value(self) -> Self
pub fn without_initial_value(self) -> Self
Returns self with initial_value set to None.
Sourcepub fn opt_initial_value(self, value: Option<String>) -> Self
pub fn opt_initial_value(self, value: Option<String>) -> Self
Returns self with initial_value set to the given Option.
Trait Implementations§
Source§impl Clone for SlackBlockUrlInputElement
impl Clone for SlackBlockUrlInputElement
Source§impl Debug for SlackBlockUrlInputElement
impl Debug for SlackBlockUrlInputElement
Source§impl<'de> Deserialize<'de> for SlackBlockUrlInputElement
impl<'de> Deserialize<'de> for SlackBlockUrlInputElement
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<SlackBlockUrlInputElement> for SlackSectionBlockElement
impl From<SlackBlockUrlInputElement> for SlackSectionBlockElement
Source§fn from(element: SlackBlockUrlInputElement) -> Self
fn from(element: SlackBlockUrlInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockUrlInputElement> for SlackInputBlockElement
impl From<SlackBlockUrlInputElement> for SlackInputBlockElement
Source§fn from(element: SlackBlockUrlInputElement) -> Self
fn from(element: SlackBlockUrlInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockUrlInputElement> for SlackActionBlockElement
impl From<SlackBlockUrlInputElement> for SlackActionBlockElement
Source§fn from(element: SlackBlockUrlInputElement) -> Self
fn from(element: SlackBlockUrlInputElement) -> Self
Converts to this type from the input type.
Source§impl From<SlackBlockUrlInputElementInit> for SlackBlockUrlInputElement
impl From<SlackBlockUrlInputElementInit> for SlackBlockUrlInputElement
Source§fn from(value: SlackBlockUrlInputElementInit) -> Self
fn from(value: SlackBlockUrlInputElementInit) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for SlackBlockUrlInputElement
Auto Trait Implementations§
impl Freeze for SlackBlockUrlInputElement
impl RefUnwindSafe for SlackBlockUrlInputElement
impl Send for SlackBlockUrlInputElement
impl Sync for SlackBlockUrlInputElement
impl Unpin for SlackBlockUrlInputElement
impl UnsafeUnpin for SlackBlockUrlInputElement
impl UnwindSafe for SlackBlockUrlInputElement
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