Skip to main content

ferroui_base/data/
binding_mode.rs

1/// Defines possible binding modes.
2#[derive(Clone, Copy, Debug, Default, PartialEq, Eq, Hash)]
3pub enum BindingMode {
4    /// Uses the default binding mode specified for the property.
5    #[default]
6    Default,
7    /// Binds one way from source to target.
8    OneWay,
9    /// Binds two-way with the initial value coming from the target.
10    TwoWay,
11    /// Updates the target when the application starts or when the data context changes.
12    OneTime,
13    /// Binds one way from target to source.
14    OneWayToSource,
15}