pub struct SelectorControlOption {
pub value: String,
pub display: String,
pub default: bool,
}
Expand description
An option in a SelectorControl
.
Fields§
§value: String
The value that is sent in the payload of the ControlPacket
when this
option is selected.
display: String
The user visible label for this option.
default: bool
Whether this option is selected as the default.
Implementations§
Source§impl SelectorControlOption
impl SelectorControlOption
Sourcepub fn format_sentence<C: ToolbarControl>(
&self,
f: &mut Formatter<'_>,
control: &C,
) -> Result
pub fn format_sentence<C: ToolbarControl>( &self, f: &mut Formatter<'_>, control: &C, ) -> Result
Writes the extcap config sentence for this option to the formatter. See
the documentation for ExtcapFormatter
for
details.
Trait Implementations§
Source§impl Clone for SelectorControlOption
impl Clone for SelectorControlOption
Source§fn clone(&self) -> SelectorControlOption
fn clone(&self) -> SelectorControlOption
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 moreAuto Trait Implementations§
impl Freeze for SelectorControlOption
impl RefUnwindSafe for SelectorControlOption
impl Send for SelectorControlOption
impl Sync for SelectorControlOption
impl Unpin for SelectorControlOption
impl UnwindSafe for SelectorControlOption
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