Skip to main content

ConfigShapeVerifier

Trait ConfigShapeVerifier 

Source
pub trait ConfigShapeVerifier {
    // Required method
    fn verify(&self, shape: &ContentId, config: &Datum) -> Result<(), String>;
}
Expand description

Port used to validate a provider configuration through its declared Shape.

Required Methods§

Source

fn verify(&self, shape: &ContentId, config: &Datum) -> Result<(), String>

Rejects a config that does not match shape.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§