pub struct UiPopup {
pub title: String,
pub kind: UiPopupKind,
pub fields: Vec<UiField>,
}Expand description
One popup a UiButton can open: a titled window that is either an
input form (UiPopupKind::Form) or a live room list
(UiPopupKind::RoomList).
Fields§
§title: StringWindow title.
kind: UiPopupKindWhat kind of popup this is, defaults to UiPopupKind::Form
when omitted, since a fields-only popup (the common shape) is a
form.
fields: Vec<UiField>Input fields, meaningful for UiPopupKind::Form popups;
empty for UiPopupKind::RoomList popups (their content comes
from the launcher’s live room data, not the mod’s authoring).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiPopup
impl<'de> Deserialize<'de> for UiPopup
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
impl StructuralPartialEq for UiPopup
Auto Trait Implementations§
impl Freeze for UiPopup
impl RefUnwindSafe for UiPopup
impl Send for UiPopup
impl Sync for UiPopup
impl Unpin for UiPopup
impl UnsafeUnpin for UiPopup
impl UnwindSafe for UiPopup
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