pub struct FieldSettings {Show 36 fields
pub key: bool,
pub typed_key: bool,
pub caption: Option<LitStr>,
pub default_property: bool,
pub read_only: bool,
pub no_list: bool,
pub no_detail: bool,
pub lookup: bool,
pub kind: Option<KindSpec>,
pub calculated: Option<LitStr>,
pub default: Option<Expr>,
pub required: bool,
pub unique: bool,
pub min: Option<Expr>,
pub max: Option<Expr>,
pub matches: Option<LitStr>,
pub message: Option<LitStr>,
pub editor: Option<LitStr>,
pub placeholder: Option<LitStr>,
pub hint: Option<LitStr>,
pub accessible_name: Option<LitStr>,
pub accessible_description: Option<LitStr>,
pub lookup_filter: Option<LitStr>,
pub none_caption: Option<LitStr>,
pub back_reference: Option<LitStr>,
pub most_bytes: Option<LitInt>,
pub wide: bool,
pub autofocus: bool,
pub non_cloneable: bool,
pub secret: bool,
pub aggregated: bool,
pub group: Option<LitStr>,
pub display_format: Option<LitStr>,
pub edit_mask: Option<LitStr>,
pub predefined: Option<Vec<String>>,
pub criteria_of: Option<LitStr>,
}Expand description
#[field(...)] on a field.
Fields§
§key: boolkey in the attribute.
typed_key: booltyped_key in the attribute.
caption: Option<LitStr>What people see.
default_property: booldefault_property in the attribute.
read_only: boolread_only in the attribute.
no_list: boolno_list in the attribute.
no_detail: boolno_detail in the attribute.
lookup: boollookup in the attribute.
kind: Option<KindSpec>What it holds, when the attribute says.
calculated: Option<LitStr>calculated = "...", checked against the struct’s fields.
default: Option<Expr>default = ..., any expression; a running program reads only literals and enum options.
required: boolrequired in the attribute.
unique: boolunique in the attribute.
min: Option<Expr>min in the attribute.
max: Option<Expr>max in the attribute.
matches: Option<LitStr>matches = "...", checked to be a valid pattern.
message: Option<LitStr>What to say instead of the usual words.
editor: Option<LitStr>editor in the attribute.
placeholder: Option<LitStr>placeholder in the attribute.
hint: Option<LitStr>hint in the attribute.
accessible_name: Option<LitStr>accessible_name in the attribute.
accessible_description: Option<LitStr>accessible_description in the attribute.
lookup_filter: Option<LitStr>lookup_filter in the attribute.
none_caption: Option<LitStr>none_caption in the attribute.
back_reference: Option<LitStr>back_reference in the attribute.
most_bytes: Option<LitInt>most_bytes in the attribute.
wide: boolwide in the attribute.
autofocus: boolautofocus in the attribute.
non_cloneable: boolnon_cloneable in the attribute.
secret: boolsecret in the attribute.
aggregated: boolaggregated in the attribute.
group: Option<LitStr>group in the attribute.
display_format: Option<LitStr>display_format in the attribute.
edit_mask: Option<LitStr>edit_mask in the attribute.
predefined: Option<Vec<String>>predefined = "a,b", as values.
criteria_of: Option<LitStr>criteria_of in the attribute.
Trait Implementations§
Source§impl Clone for FieldSettings
impl Clone for FieldSettings
Source§fn clone(&self) -> FieldSettings
fn clone(&self) -> FieldSettings
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more