pub struct RadioButtonsElement {
pub action_id: Option<String>,
pub options: Vec<OptionObject>,
pub initial_option: Option<OptionObject>,
pub confirm: Option<ConfirmationDialog>,
pub focus_on_load: Option<bool>,
/* private fields */
}Expand description
A radio button group. https://docs.slack.dev/reference/block-kit/block-elements/radio-button-group-element
Fields§
§action_id: Option<String>§options: Vec<OptionObject>§initial_option: Option<OptionObject>§confirm: Option<ConfirmationDialog>§focus_on_load: Option<bool>Implementations§
Source§impl RadioButtonsElement
impl RadioButtonsElement
pub fn new(options: Vec<OptionObject>) -> Self
pub fn action_id(self, action_id: impl Into<String>) -> Self
pub fn initial_option(self, initial_option: OptionObject) -> Self
pub fn confirm(self, confirm: ConfirmationDialog) -> Self
pub fn focus_on_load(self, focus_on_load: bool) -> Self
Trait Implementations§
Source§impl Clone for RadioButtonsElement
impl Clone for RadioButtonsElement
Source§impl Debug for RadioButtonsElement
impl Debug for RadioButtonsElement
Source§impl<'de> Deserialize<'de> for RadioButtonsElement
impl<'de> Deserialize<'de> for RadioButtonsElement
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<RadioButtonsElement> for ActionsElement
impl From<RadioButtonsElement> for ActionsElement
Source§fn from(value: RadioButtonsElement) -> Self
fn from(value: RadioButtonsElement) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtonsElement> for SectionAccessory
impl From<RadioButtonsElement> for SectionAccessory
Source§fn from(value: RadioButtonsElement) -> Self
fn from(value: RadioButtonsElement) -> Self
Converts to this type from the input type.
Source§impl From<RadioButtonsElement> for InputElement
impl From<RadioButtonsElement> for InputElement
Source§fn from(value: RadioButtonsElement) -> Self
fn from(value: RadioButtonsElement) -> Self
Converts to this type from the input type.
Source§impl PartialEq for RadioButtonsElement
impl PartialEq for RadioButtonsElement
Source§impl Serialize for RadioButtonsElement
impl Serialize for RadioButtonsElement
impl StructuralPartialEq for RadioButtonsElement
Auto Trait Implementations§
impl Freeze for RadioButtonsElement
impl RefUnwindSafe for RadioButtonsElement
impl Send for RadioButtonsElement
impl Sync for RadioButtonsElement
impl Unpin for RadioButtonsElement
impl UnsafeUnpin for RadioButtonsElement
impl UnwindSafe for RadioButtonsElement
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