pub trait Create<A>: Resource {
type Input;
// Required method
fn from_create_input(input: Self::Input) -> Self;
}Expand description
Trait placed on a Resource specifying how to create the resource using action A.
Required Associated Types§
Required Methods§
Sourcefn from_create_input(input: Self::Input) -> Self
fn from_create_input(input: Self::Input) -> Self
Create an instance of the resource using Self::Input.
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.