pub struct DatePickerBlockElement {
pub action_id: String,
pub placeholder: Option<TextBlockObject>,
pub initial_date: Option<String>,
pub confirm: Option<ConfirmationBlockObject>,
pub focus_on_load: Option<bool>,
}Expand description
An element which lets users easily select a date from a calendar style UI.
See: https://api.slack.com/reference/block-kit/block-elements#datepicker
Fields§
§action_id: String§placeholder: Option<TextBlockObject>§initial_date: Option<String>§confirm: Option<ConfirmationBlockObject>§focus_on_load: Option<bool>Implementations§
Source§impl DatePickerBlockElement
impl DatePickerBlockElement
pub fn builder(action_id: String) -> DatePickerBlockElementBuilder
Trait Implementations§
Source§impl Debug for DatePickerBlockElement
impl Debug for DatePickerBlockElement
Source§impl Default for DatePickerBlockElement
impl Default for DatePickerBlockElement
Source§fn default() -> DatePickerBlockElement
fn default() -> DatePickerBlockElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DatePickerBlockElement
impl<'de> Deserialize<'de> for DatePickerBlockElement
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 PartialEq for DatePickerBlockElement
impl PartialEq for DatePickerBlockElement
Source§impl Serialize for DatePickerBlockElement
impl Serialize for DatePickerBlockElement
impl StructuralPartialEq for DatePickerBlockElement
Auto Trait Implementations§
impl Freeze for DatePickerBlockElement
impl RefUnwindSafe for DatePickerBlockElement
impl Send for DatePickerBlockElement
impl Sync for DatePickerBlockElement
impl Unpin for DatePickerBlockElement
impl UnwindSafe for DatePickerBlockElement
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