#[non_exhaustive]pub enum Representation {
Linear,
Logarithmic,
Boolean,
PureNumber,
HexNumber,
IPV4Address,
MACAddress,
}Expand description
Recommended UI representation for a numeric feature.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Linear
Logarithmic
Boolean
PureNumber
HexNumber
IPV4Address
Display as dotted-quad IPv4 address.
MACAddress
Display as colon-separated MAC address.
Trait Implementations§
Source§impl Clone for Representation
impl Clone for Representation
Source§fn clone(&self) -> Representation
fn clone(&self) -> Representation
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 Representation
impl Debug for Representation
Source§impl<'de> Deserialize<'de> for Representation
impl<'de> Deserialize<'de> for Representation
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 Hash for Representation
impl Hash for Representation
Source§impl PartialEq for Representation
impl PartialEq for Representation
Source§impl Serialize for Representation
impl Serialize for Representation
impl Copy for Representation
impl Eq for Representation
impl StructuralPartialEq for Representation
Auto Trait Implementations§
impl Freeze for Representation
impl RefUnwindSafe for Representation
impl Send for Representation
impl Sync for Representation
impl Unpin for Representation
impl UnwindSafe for Representation
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