pub struct FormField {
pub path: Vec<String>,
pub label: String,
pub group: String,
pub kind: FieldKind,
}Expand description
The GENERAL form field — the schema element ONE form engine renders for BOTH
the display-settings dialog AND the schema-driven feature dialogs. Unlike
SettingsField (which uses &'static str because the settings schema is
compile-time), this owns its strings so it can carry a per-feature schema
pulled from the kernel catalogue at run time, and it carries a path (a
chain of JSON object keys) so a field can bind to a NESTED value —
["transform","position"], ["boolean","operation"] — not just a top-level
key. The settings form is path == [key].
Fields§
§path: Vec<String>JSON object-key chain into the document the form edits (≥ 1 segment).
label: String§group: String§kind: FieldKindImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FormField
impl RefUnwindSafe for FormField
impl Send for FormField
impl Sync for FormField
impl Unpin for FormField
impl UnsafeUnpin for FormField
impl UnwindSafe for FormField
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more