Skip to main content

Module custom

Module custom 

Source
Expand description

User-defined HTTP providers: a URL, a static token, and JSON pointers.

Configured as [[custom]] tables (see config::CustomProviderConfig). Everything vendor-specific that a built-in provider hard-codes — endpoint, auth header, response schema — is data here, which is why the module has a mapping where the others have a types mirroring an upstream API.

Re-exports§

pub use fetch::fetch_snapshot;

Modules§

fetch
Fetch a custom provider: one GET with a static token, projected through the user’s pointers.
mapping
Project an arbitrary JSON body onto a CustomSnapshot through the pointers of a CustomProviderConfig.
types
The projected shape of a custom provider’s response.
vendor
Custom provider → the shared vendor outcome.