Struct slack_morphism::prelude::SlackBlockUrlInputElement
source · 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
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 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
Trait Implementations§
source§impl Clone for SlackBlockUrlInputElement
impl Clone for SlackBlockUrlInputElement
source§fn clone(&self) -> SlackBlockUrlInputElement
fn clone(&self) -> SlackBlockUrlInputElement
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 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 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<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 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<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.
source§impl PartialEq for SlackBlockUrlInputElement
impl PartialEq for SlackBlockUrlInputElement
source§fn eq(&self, other: &SlackBlockUrlInputElement) -> bool
fn eq(&self, other: &SlackBlockUrlInputElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SlackBlockUrlInputElement
Auto Trait Implementations§
impl RefUnwindSafe for SlackBlockUrlInputElement
impl Send for SlackBlockUrlInputElement
impl Sync for SlackBlockUrlInputElement
impl Unpin 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