pub trait SceneTemplate {
type Arguments: Serialize + Clone + Send + Sync;
type Result: DeserializeOwned + Send + Sync;
// Required method
fn template_name() -> &'static str;
}Expand description
Trait for defining scene templates
Scene templates define how to create and tear down test data. Each template has associated types for input arguments and output results.
Required Associated Types§
Sourcetype Arguments: Serialize + Clone + Send + Sync
type Arguments: Serialize + Clone + Send + Sync
The type of arguments passed to create the scene
Sourcetype Result: DeserializeOwned + Send + Sync
type Result: DeserializeOwned + Send + Sync
The type of result returned when the scene is created
Required Methods§
Sourcefn template_name() -> &'static str
fn template_name() -> &'static str
The name of this template (used in API calls)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.