pub struct RadioButtonsElement {
pub action_id: String,
pub options: Vec<OptionObject>,
pub initial_option: Option<OptionObject>,
pub confirm: Option<ConfirmationDialog>,
pub focus_on_load: Option<bool>,
/* private fields */
}Expand description
Radio buttons element
Fields§
§action_id: String§options: Vec<OptionObject>§initial_option: Option<OptionObject>§confirm: Option<ConfirmationDialog>§focus_on_load: Option<bool>Implementations§
Source§impl RadioButtonsElement
impl RadioButtonsElement
Sourcepub fn option(self, option: OptionObject) -> Self
pub fn option(self, option: OptionObject) -> Self
Add an option
Sourcepub fn options(self, options: Vec<OptionObject>) -> Self
pub fn options(self, options: Vec<OptionObject>) -> Self
Add multiple options
Sourcepub fn initial_option(self, option: OptionObject) -> Self
pub fn initial_option(self, option: OptionObject) -> Self
Set initial option
Trait Implementations§
Source§impl Clone for RadioButtonsElement
impl Clone for RadioButtonsElement
Source§fn clone(&self) -> RadioButtonsElement
fn clone(&self) -> RadioButtonsElement
Returns a duplicate 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 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
Auto Trait Implementations§
impl Freeze for RadioButtonsElement
impl RefUnwindSafe for RadioButtonsElement
impl Send for RadioButtonsElement
impl Sync for RadioButtonsElement
impl Unpin 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