Skip to main content

SchemaFn

Type Alias SchemaFn 

Source
pub type SchemaFn = Arc<dyn Fn() -> Value + Send + Sync>;
Expand description

A closure returning the JSON Schema for a custom connector’s config. Powers faucet schema source <name> / faucet schema sink <name> for third-party connectors without instantiating one. Typically || schema_for!(MyConfig).

Aliased Type§

pub struct SchemaFn { /* private fields */ }