Skip to main content

AttachedValidator

Trait AttachedValidator 

Source
pub trait AttachedValidator {
    // Required method
    fn required_objects(&self) -> Vec<RequiredObject>;

    // Provided method
    fn validate(&self, ctx: &mut ValidationContext<'_>) -> ValidationReport { ... }
}
Expand description

Attached-mode validation: check that externally managed resources exist.

Attached validation must never create, alter, or drop datastore schema.

Required Methods§

Source

fn required_objects(&self) -> Vec<RequiredObject>

Declare the objects this consumer requires.

Provided Methods§

Source

fn validate(&self, ctx: &mut ValidationContext<'_>) -> ValidationReport

Run all validators and return a report of present and missing objects.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§