Skip to main content

Creatable

Trait Creatable 

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

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

Provided Methods§

Source

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

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>> Creatable<C, R> for NavProperty<T>
where C: Sync + Send + Sized + Serialize, R: Sync + Send + Sized + for<'de> Deserialize<'de>,