pub struct MultiCheckValue {
pub value: String,
pub display: String,
pub default_value: bool,
pub enabled: bool,
pub children: Vec<MultiCheckValue>,
}
Expand description
Represents a checkbox in a MultiCheckConfig
. Each value is a checkbox in
the UI that can be nested into a hierarchy using the children
field. See
the docs for MultiCheckConfig
for usage details.
Fields§
§value: String
The value for this option, which is the value that will be passed to the
extcap command line. For example, if MultiCheckConfig.call
is foo
,
and this field is bar
, then --foo bar
will be passed to this extcap
program during capturing.
display: String
The user-friendly label for this check box.
default_value: bool
The default value for this check box, whether it is checked or not.
enabled: bool
Whether this checkbox is enabled or not.
children: Vec<MultiCheckValue>
The list of children checkboxes. Children check boxes will be indented under this check box in the UI, but does not change how the value gets sent to the extcap program.
Implementations§
Source§impl MultiCheckValue
impl MultiCheckValue
Sourcepub fn builder() -> MultiCheckValueBuilder<((), (), (), (), ())>
pub fn builder() -> MultiCheckValueBuilder<((), (), (), (), ())>
Create a builder for building MultiCheckValue
.
On the builder, call .value(...)
, .display(...)
, .default_value(...)
(optional), .enabled(...)
(optional), .children(...)
(optional) to set the values of the fields.
Finally, call .build()
to create the instance of MultiCheckValue
.
Trait Implementations§
Source§impl Clone for MultiCheckValue
impl Clone for MultiCheckValue
Source§fn clone(&self) -> MultiCheckValue
fn clone(&self) -> MultiCheckValue
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more