pub struct FieldMeta {Show 14 fields
pub name: &'static str,
pub key: &'static str,
pub title: &'static str,
pub description: &'static str,
pub category: &'static str,
pub category_order: i32,
pub kind: FieldKind,
pub depends_on: Option<&'static str>,
pub is_persisted_only: bool,
pub no_reset: bool,
pub confirm_reset: Option<&'static str>,
pub validation: Option<ValidationRules>,
pub confirmation: Option<ConfirmationConfig>,
pub platforms: Vec<&'static str>,
}Expand description
Runtime metadata for a single setting field.
Generated by the #[derive(Settings)] proc macro.
Fields§
§name: &'static strProperty/field name in the struct.
key: &'static strPersistence key (defaults to snake_case of name).
title: &'static strDisplay title for UI.
description: &'static strDescription text for UI.
category: &'static strCategory identifier string.
category_order: i32Category display order.
kind: FieldKindUI widget type.
depends_on: Option<&'static str>Field name this depends on (disabled when dependency is falsy).
is_persisted_only: boolWhether this field is persisted-only (no UI).
no_reset: boolWhether this field should be excluded from reset.
confirm_reset: Option<&'static str>Confirmation message before reset (if any).
validation: Option<ValidationRules>Validation rules.
confirmation: Option<ConfirmationConfig>Confirmation config for changing this setting.
platforms: Vec<&'static str>Platform restrictions (empty = all platforms). Values: “android”, “ios”, “windows”, “macos”, “linux”, “desktop”
Implementations§
Trait Implementations§
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