Skip to main content

Creatable

Trait Creatable 

Source
pub trait Creatable<V, R>: Sized + EntityTypeRef
where V: Sync + Send + Serialize, R: Sync + Send + 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", so this trait is not object safe.

Implementors§

Source§

impl<C, R, T> Creatable<C, R> for NavProperty<T>
where T: Creatable<C, R>, C: Sync + Send + Serialize, R: Sync + Send + for<'de> Deserialize<'de>,