pub trait ProviderExtension {
type Options: ExtensionOptions;
type Extras: ReplyExtras;
const PROVIDER: &'static str;
}Expand description
A provider’s typed request options and reply extras.
Required Associated Constants§
Sourceconst PROVIDER: &'static str
const PROVIDER: &'static str
The provider’s key: the name its wires report as
ReplayTarget::provider and stamp on a reply’s Origin.
Stable API from 0.44: requests store provider options under this key, and the model catalog files the provider’s models under it, so rig does not rename a provider’s key in a minor release.
Required Associated Types§
Sourcetype Options: ExtensionOptions
type Options: ExtensionOptions
The request options: an object of sections, SHARED and route API
names, each an object of body keys.
Sourcetype Extras: ReplyExtras
type Extras: ReplyExtras
The typed view of a reply’s raw document.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".