pub struct RequestRepository<TReq, TRes> { /* private fields */ }
Implementations§
Source§impl<TReq, TRes> RequestRepository<TReq, TRes>where
TReq: for<'de> Deserialize<'de> + Serialize + Send + Sync + 'static,
TRes: for<'de> Deserialize<'de> + Serialize + Send + Sync + 'static,
impl<TReq, TRes> RequestRepository<TReq, TRes>where
TReq: for<'de> Deserialize<'de> + Serialize + Send + Sync + 'static,
TRes: for<'de> Deserialize<'de> + Serialize + Send + Sync + 'static,
pub fn new(pool: PgPool) -> Self
pub async fn query( &self, filter: RequestFilter, ) -> Result<Vec<RequestResponsePair<TReq, TRes>>, PostgresHandlerError>
Trait Implementations§
Source§impl<TReq: Clone, TRes: Clone> Clone for RequestRepository<TReq, TRes>
impl<TReq: Clone, TRes: Clone> Clone for RequestRepository<TReq, TRes>
Source§fn clone(&self) -> RequestRepository<TReq, TRes>
fn clone(&self) -> RequestRepository<TReq, TRes>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<TReq, TRes> Freeze for RequestRepository<TReq, TRes>
impl<TReq, TRes> !RefUnwindSafe for RequestRepository<TReq, TRes>
impl<TReq, TRes> Send for RequestRepository<TReq, TRes>
impl<TReq, TRes> Sync for RequestRepository<TReq, TRes>
impl<TReq, TRes> Unpin for RequestRepository<TReq, TRes>
impl<TReq, TRes> !UnwindSafe for RequestRepository<TReq, TRes>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more