Skip to main content

Updatable

Trait Updatable 

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

This trait is assigned to entity types that are marked as updatable in the CSDL specification.

Provided Methods§

Source

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

Update an entity using update 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<U, T> Updatable<U> for NavProperty<T>
where T: Updatable<U>, U: Sync + Send + Serialize,