FerroPropertyMetadata
struct · ferroui-base · v0.5.0
struct FerroPropertyMetadata
Metadata common to all property kinds.
Members
new
fn new(default_binding_mode: BindingMode, enable_data_validation: Option<bool>) -> Self
default_binding_mode
fn default_binding_mode(self: &Self) -> BindingMode
The default binding mode for the property.
enable_data_validation
fn enable_data_validation(self: &Self) -> Option<bool>
Whether the property is interested in data validation.
Data validation is validation performed at the target of a binding, for example in a view model. To enable it on a binding, the property must also enable it here.
is_read_only
fn is_read_only(self: &Self) -> bool
Whether the metadata has been frozen.
merge
fn merge(self: &mut Self, base: &FerroPropertyMetadata)
Merges unset members from the base metadata.
freeze
fn freeze(self: &mut Self)
Makes the metadata read-only.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>AnyToOwnedErasedDestructorIntoEitherCloneDebug
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.