pub enum UiPopupKind {
Form,
RoomList,
Unknown(String),
}Expand description
What kind of popup a UiPopup is. Unknown kind strings from a
newer launcher round-trip through UiPopupKind::Unknown so they
fail validation (with the raw string in the message) instead of
failing to parse.
Variants§
Form
An input form built from UiPopup::fields.
RoomList
A live list of joinable rooms fetched by the launcher.
Unknown(String)
A kind string this launcher version doesn’t know, always
rejected by ModUi::validate.
Implementations§
Trait Implementations§
Source§impl Clone for UiPopupKind
impl Clone for UiPopupKind
Source§fn clone(&self) -> UiPopupKind
fn clone(&self) -> UiPopupKind
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 UiPopupKind
impl Debug for UiPopupKind
Source§impl Default for UiPopupKind
impl Default for UiPopupKind
Source§fn default() -> UiPopupKind
fn default() -> UiPopupKind
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UiPopupKind
impl<'de> Deserialize<'de> for UiPopupKind
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 UiPopupKind
impl PartialEq for UiPopupKind
Source§fn eq(&self, other: &UiPopupKind) -> bool
fn eq(&self, other: &UiPopupKind) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for UiPopupKind
impl Serialize for UiPopupKind
impl Eq for UiPopupKind
impl StructuralPartialEq for UiPopupKind
Auto Trait Implementations§
impl Freeze for UiPopupKind
impl RefUnwindSafe for UiPopupKind
impl Send for UiPopupKind
impl Sync for UiPopupKind
impl Unpin for UiPopupKind
impl UnsafeUnpin for UiPopupKind
impl UnwindSafe for UiPopupKind
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