Skip to main content

IDataValidationPlugin

Trait IDataValidationPlugin 

Source
pub trait IDataValidationPlugin {
    // Required methods
    fn match_(&self, reference: &WeakValue, member_name: &str) -> bool;
    fn start(
        &self,
        reference: &WeakValue,
        property_name: &str,
        inner: Rc<dyn IPropertyAccessor>,
    ) -> Rc<dyn IPropertyAccessor>;
}
Expand description

Defines how data validation is observed by a binding.

Required Methods§

Source

fn match_(&self, reference: &WeakValue, member_name: &str) -> bool

Checks whether this plugin can handle data validation on the specified object.

Source

fn start( &self, reference: &WeakValue, property_name: &str, inner: Rc<dyn IPropertyAccessor>, ) -> Rc<dyn IPropertyAccessor>

Starts monitoring the data validation state of a property on an object, wrapping inner.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§