pub enum UiNode {
Column {
id: String,
children: Vec<UiNode>,
gap: Option<f32>,
no_padding: bool,
intrinsic_height: bool,
fill_remaining_height: bool,
},
Row {
id: String,
children: Vec<UiNode>,
no_wrap: bool,
fill_remaining_height: bool,
},
Container {
id: String,
child: Box<UiNode>,
background: bool,
no_padding: bool,
fill_height: bool,
width: Option<f32>,
height: Option<f32>,
},
Text {
id: String,
text: UiTextSource,
role: UiTextRole,
},
Button {
id: String,
label: String,
accessible_name: Option<String>,
tooltip: Option<String>,
on_click_path: Option<String>,
click_value: Option<String>,
navigate: Option<UiNavigation>,
enabled: bool,
role: UiButtonRole,
},
TextInput {
id: String,
label: Option<String>,
accessible_name: String,
placeholder: String,
value_path: Option<String>,
initial_value: String,
multiline: bool,
disabled: bool,
},
Checkbox {
id: String,
label: Option<String>,
accessible_name: String,
value_path: String,
enabled: bool,
},
Toggle {
id: String,
label: Option<String>,
accessible_name: String,
value_path: String,
enabled: bool,
},
Component {
id: String,
name: String,
props: Map<String, Value>,
},
Spacer {
id: String,
},
}Variants§
Column
Fields
Row
Container
Fields
Text
Button
Fields
§
on_click_path: Option<String>Where a click is reported to the app: the app takes it from the
graph’s UiValues by this path and acts on it. The button never
writes the document.
§
role: UiButtonRoleTextInput
Fields
Checkbox
Toggle
Component
App-owned retained widget built by a process-local component factory.
Fields
Spacer
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UiNode
impl<'de> Deserialize<'de> for UiNode
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 UiNode
Auto Trait Implementations§
impl Forget for UiNode
impl Freeze for UiNode
impl Move for UiNode
impl RefUnwindSafe for UiNode
impl Send for UiNode
impl Sync for UiNode
impl Unpin for UiNode
impl UnsafeUnpin for UiNodewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<UiNode>: UnsafeUnpin,
*const UiNode is !null: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for UiNode
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