Struct ashpd::desktop::file_chooser::Choice [−][src]
pub struct Choice(_, _, _, _);
Expand description
Presents the user with a choice to select from or as a checkbox.
Implementations
Creates a checkbox choice.
Arguments
id
- A unique identifier of the choice.label
- user-visible name of the choice.state
- the initial state value.
Creates a new choice.
Arguments
id
- A unique identifier of the choice.label
- user-visible name of the choice.initial_selection
- the initially selected value.
The initially selected value.
Trait Implementations
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 RefUnwindSafe for Choice
impl UnwindSafe for Choice
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V