Skip to main content

field_default

Function field_default 

Source
pub fn field_default<T: ObjectCore>(name: &str) -> Option<Any>
Expand description

The default value T registers for its field name, or None if T registers no such field, the field has no default, or its default comes from a factory.

Only fields T registers itself are searched, not those of its ancestors.