pub struct OptionEntry {
pub default_value: Option<u32>,
pub options: Vec<String>,
}Expand description
Expected String entry based on a number of predefined options
Fields§
§default_value: Option<u32>represents the index of the array, used as default value
options: Vec<String>valid input options
Implementations§
Source§impl OptionEntry
impl OptionEntry
Source§impl OptionEntry
impl OptionEntry
Trait Implementations§
Source§impl Clone for OptionEntry
impl Clone for OptionEntry
Source§fn clone(&self) -> OptionEntry
fn clone(&self) -> OptionEntry
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 moreSource§impl Debug for OptionEntry
impl Debug for OptionEntry
Source§impl Default for OptionEntry
impl Default for OptionEntry
Source§fn default() -> OptionEntry
fn default() -> OptionEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for OptionEntry
impl<'de> Deserialize<'de> for OptionEntry
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 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 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