pub struct RadioButtonsBlockElement {
pub action_id: String,
pub options: Vec<OptionBlockObject>,
pub initial_option: Option<OptionBlockObject>,
pub confirm: Option<ConfirmationBlockObject>,
}Expand description
A radio button group that allows a user to choose one item from a list of possible options.
See: https://api.slack.com/reference/block-kit/block-elements#radio
Fields§
§action_id: String§options: Vec<OptionBlockObject>§initial_option: Option<OptionBlockObject>§confirm: Option<ConfirmationBlockObject>Implementations§
Source§impl RadioButtonsBlockElement
impl RadioButtonsBlockElement
pub fn builder( action_id: String, options: Vec<OptionBlockObject>, ) -> RadioButtonsBlockElementBuilder
Trait Implementations§
Source§impl Debug for RadioButtonsBlockElement
impl Debug for RadioButtonsBlockElement
Source§impl Default for RadioButtonsBlockElement
impl Default for RadioButtonsBlockElement
Source§fn default() -> RadioButtonsBlockElement
fn default() -> RadioButtonsBlockElement
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RadioButtonsBlockElement
impl<'de> Deserialize<'de> for RadioButtonsBlockElement
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 RadioButtonsBlockElement
impl PartialEq for RadioButtonsBlockElement
Source§impl Serialize for RadioButtonsBlockElement
impl Serialize for RadioButtonsBlockElement
impl StructuralPartialEq for RadioButtonsBlockElement
Auto Trait Implementations§
impl Freeze for RadioButtonsBlockElement
impl RefUnwindSafe for RadioButtonsBlockElement
impl Send for RadioButtonsBlockElement
impl Sync for RadioButtonsBlockElement
impl Unpin for RadioButtonsBlockElement
impl UnwindSafe for RadioButtonsBlockElement
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