pub struct EnumProperty {
pub unknown_value: Option<String>,
pub values: HashMap<String, EnumValueDescription>,
}Expand description
Description of an enum property.
Fields§
§unknown_value: Option<String>The value to use when the enum value is unknown.
values: HashMap<String, EnumValueDescription>Map from enum value identifier to description.
Trait Implementations§
Source§impl Clone for EnumProperty
impl Clone for EnumProperty
Source§fn clone(&self) -> EnumProperty
fn clone(&self) -> EnumProperty
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 EnumProperty
impl Debug for EnumProperty
Source§impl Default for EnumProperty
impl Default for EnumProperty
Source§fn default() -> EnumProperty
fn default() -> EnumProperty
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EnumProperty
impl<'de> Deserialize<'de> for EnumProperty
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
Auto Trait Implementations§
impl Freeze for EnumProperty
impl RefUnwindSafe for EnumProperty
impl Send for EnumProperty
impl Sync for EnumProperty
impl Unpin for EnumProperty
impl UnwindSafe for EnumProperty
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