pub struct FieldUI {
pub role: FieldRole,
pub label: String,
pub placeholder: Option<String>,
pub hint: Option<String>,
pub sensitive: bool,
pub sensitivity_note: Option<String>,
pub relation_label: Option<String>,
}Expand description
Everything a form / list renderer needs to present one field to a human. All strings are plain text (no HTML) — the caller escapes before emitting.
Fields§
§role: FieldRole§label: String§placeholder: Option<String>§hint: Option<String>§sensitive: booltrue when the field should carry the lock marker and (for
list views) be masked by default.
sensitivity_note: Option<String>One-line explanation of why the field is sensitive.
relation_label: Option<String>Set when the field is a FK to a known model. Carries the
singular display name of the target (e.g. "Applicant").
Trait Implementations§
impl Eq for FieldUI
impl StructuralPartialEq for FieldUI
Auto Trait Implementations§
impl Freeze for FieldUI
impl RefUnwindSafe for FieldUI
impl Send for FieldUI
impl Sync for FieldUI
impl Unpin for FieldUI
impl UnsafeUnpin for FieldUI
impl UnwindSafe for FieldUI
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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 more