Skip to main content

Creatable

Trait Creatable 

Source
pub trait Creatable<V, R>: EntityTypeRef
where V: Send + Sync + Serialize, R: Send + Sync + for<'de> Deserialize<'de>,
{ // Provided method fn create<B>( &self, bmc: &B, create: &V, ) -> impl Future<Output = Result<ModificationResponse<R>, <B as Bmc>::Error>> + Send where B: Bmc { ... } }
Expand description

This trait is assigned to the collections that are marked as creatable in the CSDL specification.

Provided Methods§

Source

fn create<B>( &self, bmc: &B, create: &V, ) -> impl Future<Output = Result<ModificationResponse<R>, <B as Bmc>::Error>> + Send
where B: Bmc,

Create an entity using create as payload.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§