pub enum BodyItem {
Field(Widget),
Row(Vec<(Widget, u8)>),
Group {
key: String,
label: String,
items: Vec<BodyItem>,
},
Zone {
key: String,
label: String,
widget: Widget,
min: Option<u32>,
max: Option<u32>,
},
}Expand description
One editor-facing layout item, in authored order.
Variants§
Field(Widget)
A stacked scalar input.
Row(Vec<(Widget, u8)>)
Side-by-side inputs with 1–12 widths.
Group
A named fieldset of stacked/row inputs (values nest under key).
Zone
A repeater or flex zone — one stream editor.
Trait Implementations§
Auto Trait Implementations§
impl Forget for BodyItem
impl Freeze for BodyItem
impl RefUnwindSafe for BodyItem
impl Send for BodyItem
impl Sync for BodyItem
impl Unpin for BodyItem
impl UnsafeUnpin for BodyItem
impl UnwindSafe for BodyItem
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.