pub trait DeployDriver: Send + Sync {
// Required method
fn apply<'a>(
&'a self,
spec: &'a DeploymentSpec,
) -> BoxFuture<'a, Result<DeploymentRef, DeployError>>;
}Expand description
Creates or updates a deployment version (graphrt deploy --target <t>).
Writes secrets to the provider’s secret store as references; the gateway
never receives them.
Required Methods§
Sourcefn apply<'a>(
&'a self,
spec: &'a DeploymentSpec,
) -> BoxFuture<'a, Result<DeploymentRef, DeployError>>
fn apply<'a>( &'a self, spec: &'a DeploymentSpec, ) -> BoxFuture<'a, Result<DeploymentRef, DeployError>>
Applies spec and returns the reference the gateway will wake.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".