pub struct FieldMeta {
pub label: Option<Cow<'static, str>>,
pub description: Option<Cow<'static, str>>,
pub placeholder: Option<Cow<'static, str>>,
pub extra: Vec<(Cow<'static, str>, Value)>,
}Expand description
UI-facing metadata slots (DV-3); unknown extras survive round-trips.
Fields§
§label: Option<Cow<'static, str>>Short display label.
description: Option<Cow<'static, str>>Longer description.
placeholder: Option<Cow<'static, str>>Input placeholder text.
extra: Vec<(Cow<'static, str>, Value)>Extensible key-value extras for UI layers.
Trait Implementations§
impl StructuralPartialEq for FieldMeta
Auto Trait Implementations§
impl Freeze for FieldMeta
impl RefUnwindSafe for FieldMeta
impl Send for FieldMeta
impl Sync for FieldMeta
impl Unpin for FieldMeta
impl UnsafeUnpin for FieldMeta
impl UnwindSafe for FieldMeta
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