Skip to main content

Create

Trait Create 

Source
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§

Source

type Input

Input used to create the resource.

Required Methods§

Source

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.

Implementors§