pub trait CrossPackResolver: Send + Sync {
// Required method
fn invoke(
&self,
provider_id: &str,
provider_type: Option<&str>,
op: &str,
input: &[u8],
tenant: &str,
team: Option<&str>,
) -> Result<Value, Error>;
}Expand description
Callback trait for resolving cross-pack provider invocations.
When a provider.invoke node references a provider that is not in the
current pack, the flow engine calls this resolver as a fallback.
Implementations typically delegate to a capability registry that knows
about all packs in the bundle.
Required Methods§
fn invoke( &self, provider_id: &str, provider_type: Option<&str>, op: &str, input: &[u8], tenant: &str, team: Option<&str>, ) -> Result<Value, Error>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".