pub trait HasConfigSchema {
// Required methods
fn conformance_schema(&self) -> Value;
fn conformance_label(&self) -> String;
}Expand description
Anything that can expose a config JSON Schema + a label — blanket-implemented
for every Source so assert_config_schema_valid accepts a source
directly. (Sinks can be checked via assert_config_schema_valid_value.)
Required Methods§
Sourcefn conformance_schema(&self) -> Value
fn conformance_schema(&self) -> Value
The connector’s advertised config schema.
Sourcefn conformance_label(&self) -> String
fn conformance_label(&self) -> String
A human label for assertion messages.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".