pub struct ChoiceValue {
pub value: String,
pub label_key: String,
pub label: String,
}Expand description
One value of a ParamKind::Choice.
Fields§
§value: StringWhat the JSON holds.
label_key: StringThe key the front end translates for the label.
label: StringThe label to show when the front end has no translation for the key.
Trait Implementations§
Source§impl Clone for ChoiceValue
impl Clone for ChoiceValue
Source§impl Debug for ChoiceValue
impl Debug for ChoiceValue
Source§impl<'de> Deserialize<'de> for ChoiceValue
impl<'de> Deserialize<'de> for ChoiceValue
Source§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
Source§impl PartialEq for ChoiceValue
impl PartialEq for ChoiceValue
Source§impl Serialize for ChoiceValue
impl Serialize for ChoiceValue
impl StructuralPartialEq for ChoiceValue
Auto Trait Implementations§
impl Freeze for ChoiceValue
impl RefUnwindSafe for ChoiceValue
impl Send for ChoiceValue
impl Sync for ChoiceValue
impl Unpin for ChoiceValue
impl UnsafeUnpin for ChoiceValue
impl UnwindSafe for ChoiceValue
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