chore: updated schemas

This commit is contained in:
TotallyNot 2025-05-19 20:09:38 +02:00
parent b4ce0c764e
commit 73358b70cc
Signed by: pyrite
GPG key ID: 7F1BA9170CD35D15
11 changed files with 1628 additions and 100 deletions

View file

@ -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,
{

View file

@ -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);
}