UpsertCollection

Trait UpsertCollection 

Source
pub trait UpsertCollection<TUpsert, TResponse> {
    // Provided method
    fn upsert(
        &self,
        collection: &TUpsert,
    ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
       where TUpsert: Serialize + Sync + Send,
             TResponse: Serialize + DeserializeOwned + Sync + Send,
             Self: WithApiClient + WithBasePath + Sync { ... }
}
Expand description

Trait for resource types that support upserts directly.

Provided Methods§

Source

fn upsert( &self, collection: &TUpsert, ) -> impl Future<Output = Result<Vec<TResponse>>> + Send
where TUpsert: Serialize + Sync + Send, TResponse: Serialize + DeserializeOwned + Sync + Send, Self: WithApiClient + WithBasePath + Sync,

Upsert a list of resources.

§Arguments
  • collection - Items to insert or update.

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§