#[non_exhaustive]pub enum ParamKind {
Bool,
Integer {
min: Option<i64>,
max: Option<i64>,
unit: Option<&'static str>,
},
Text,
}Expand description
What values a parameter accepts (#125).
Three kinds, and no more until something acts on a fourth: every radio or
interface parameter met so far is a switch, a bounded integer in a stated
unit, or text. No float: a value that needs one is an integer in a
finer unit — fake-medium’s duty budget is a fraction and is exposed in
ppm — which also keeps equality exact.
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.
Bool
true or false.
Integer
A whole number, optionally bounded, in a stated unit.
Fields
Text
Free text.
Implementations§
Trait Implementations§
impl Eq for ParamKind
impl StructuralPartialEq for ParamKind
Auto Trait Implementations§
impl Freeze for ParamKind
impl RefUnwindSafe for ParamKind
impl Send for ParamKind
impl Sync for ParamKind
impl Unpin for ParamKind
impl UnsafeUnpin for ParamKind
impl UnwindSafe for ParamKind
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