chore: updated schemas
This commit is contained in:
parent
b4ce0c764e
commit
73358b70cc
11 changed files with 1628 additions and 100 deletions
|
|
@ -62,14 +62,14 @@ pub trait BulkExecutor: Sized {
|
|||
fn execute<R>(
|
||||
self,
|
||||
requests: impl IntoIterator<Item = R>,
|
||||
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)>
|
||||
) -> impl Stream<Item = (R::Discriminant, Result<ApiResponse, Self::Error>)> + Unpin
|
||||
where
|
||||
R: IntoRequest;
|
||||
|
||||
fn fetch_many<R>(
|
||||
self,
|
||||
requests: impl IntoIterator<Item = R>,
|
||||
) -> impl Stream<Item = (R::Discriminant, Result<R::Response, Self::Error>)>
|
||||
) -> impl Stream<Item = (R::Discriminant, Result<R::Response, Self::Error>)> + Unpin
|
||||
where
|
||||
R: IntoRequest,
|
||||
{
|
||||
|
|
@ -173,7 +173,7 @@ pub trait BulkExecutorExt: BulkExecutor + Sized {
|
|||
}
|
||||
|
||||
#[cfg(feature = "scopes")]
|
||||
impl<'e, T> BulkExecutorExt for T
|
||||
impl<T> BulkExecutorExt for T
|
||||
where
|
||||
T: BulkExecutor + Sized,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ pub struct ApiResponse {
|
|||
}
|
||||
|
||||
pub trait IntoRequest: Send {
|
||||
type Discriminant: Send;
|
||||
type Discriminant: Send + 'static;
|
||||
type Response: for<'de> serde::Deserialize<'de> + Send;
|
||||
fn into_request(self) -> (Self::Discriminant, ApiRequest);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue