Struct r_extcap::controls::SelectorControlOption
source · 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 copy 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 more