pub enum UiFieldKind {
Text,
Select,
Number,
Duration,
DateTime,
Unknown(String),
}Expand description
What kind of control a UiField renders. Unknown kind strings
round-trip through UiFieldKind::Unknown so they fail validation
(with the raw string in the message) instead of failing to parse.
Variants§
Text
Free-text input.
Select
A choice among UiField::options, must be non-empty.
Number
Numeric input.
Duration
A duration picker (values like "1h", "6h", "24h").
DateTime
A date+time picker (room planning windows). The collected
value is a UTC epoch-seconds string; the launcher renders it with
egui’s DatePickerButton plus hour/minute steppers. Defaults (now /
tomorrow) are applied by the launcher when the popup opens.
Unknown(String)
A kind string this launcher version doesn’t know, always
rejected by ModUi::validate.
Implementations§
Trait Implementations§
Source§impl Clone for UiFieldKind
impl Clone for UiFieldKind
Source§fn clone(&self) -> UiFieldKind
fn clone(&self) -> UiFieldKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 UiFieldKind
impl Debug for UiFieldKind
Source§impl Default for UiFieldKind
impl Default for UiFieldKind
Source§fn default() -> UiFieldKind
fn default() -> UiFieldKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UiFieldKind
impl<'de> Deserialize<'de> for UiFieldKind
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for UiFieldKind
impl PartialEq for UiFieldKind
Source§fn eq(&self, other: &UiFieldKind) -> bool
fn eq(&self, other: &UiFieldKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UiFieldKind
impl Serialize for UiFieldKind
impl Eq for UiFieldKind
impl StructuralPartialEq for UiFieldKind
Auto Trait Implementations§
impl Freeze for UiFieldKind
impl RefUnwindSafe for UiFieldKind
impl Send for UiFieldKind
impl Sync for UiFieldKind
impl Unpin for UiFieldKind
impl UnsafeUnpin for UiFieldKind
impl UnwindSafe for UiFieldKind
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