pub struct OptionEntry {
pub value: String,
pub label: String,
}Expand description
A single choice inside an Enum parameter. Carries a machine value
and a human-readable label.
Fields§
§value: StringThe value stored in config JSON (e.g., "jpeg").
label: StringThe label shown in the UI (e.g., "JPEG").
Trait Implementations§
Source§impl Clone for OptionEntry
impl Clone for OptionEntry
Source§impl Debug for OptionEntry
impl Debug for OptionEntry
Source§impl PartialEq for OptionEntry
impl PartialEq for OptionEntry
Source§impl Serialize for OptionEntry
impl Serialize for OptionEntry
impl StructuralPartialEq for OptionEntry
Auto Trait Implementations§
impl Freeze for OptionEntry
impl RefUnwindSafe for OptionEntry
impl Send for OptionEntry
impl Sync for OptionEntry
impl Unpin for OptionEntry
impl UnsafeUnpin for OptionEntry
impl UnwindSafe for OptionEntry
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