pub struct DMSCORMSimpleRepository<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> { /* private fields */ }Implementations§
Source§impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMSimpleRepository<E>
impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMSimpleRepository<E>
Source§impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMSimpleRepository<E>
impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMSimpleRepository<E>
Trait Implementations§
Source§impl<E: Clone + for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> Clone for DMSCORMSimpleRepository<E>
impl<E: Clone + for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> Clone for DMSCORMSimpleRepository<E>
Source§fn clone(&self) -> DMSCORMSimpleRepository<E>
fn clone(&self) -> DMSCORMSimpleRepository<E>
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 moreSource§impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMRepository<E> for DMSCORMSimpleRepository<E>
impl<E: for<'de> Deserialize<'de> + Serialize + Clone + Send + Sync> DMSCORMRepository<E> for DMSCORMSimpleRepository<E>
fn table_name(&self) -> &'static str
fn find_all<'life0, 'life1, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
) -> Pin<Box<dyn Future<Output = DMSCResult<Vec<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_by_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = DMSCResult<Option<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_one<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
criteria: &'life2 Criteria,
) -> Pin<Box<dyn Future<Output = DMSCResult<Option<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn find_many<'life0, 'life1, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
criteria: Vec<Criteria>,
) -> Pin<Box<dyn Future<Output = DMSCResult<Vec<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn find_paginated<'life0, 'life1, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
pagination: Pagination,
criteria: Vec<Criteria>,
) -> Pin<Box<dyn Future<Output = DMSCResult<(Vec<E>, u64)>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn count<'life0, 'life1, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
criteria: Vec<Criteria>,
) -> Pin<Box<dyn Future<Output = DMSCResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn save<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entity: &'life2 E,
) -> Pin<Box<dyn Future<Output = DMSCResult<E>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn save_many<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entities: &'life2 [E],
) -> Pin<Box<dyn Future<Output = DMSCResult<Vec<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn update<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entity: &'life2 E,
) -> Pin<Box<dyn Future<Output = DMSCResult<E>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entity: &'life2 E,
) -> Pin<Box<dyn Future<Output = DMSCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_by_id<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = DMSCResult<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn delete_many<'life0, 'life1, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
criteria: Vec<Criteria>,
) -> Pin<Box<dyn Future<Output = DMSCResult<u64>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn batch_insert<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entities: &'life2 [E],
batch_size: usize,
) -> Pin<Box<dyn Future<Output = DMSCResult<Vec<E>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn upsert<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
entity: &'life2 E,
conflict_columns: &'life3 [&'life4 str],
) -> Pin<Box<dyn Future<Output = DMSCResult<E>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
fn exists<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
id: &'life2 str,
) -> Pin<Box<dyn Future<Output = DMSCResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn exists_by<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
db: &'life1 dyn DMSCDatabase,
criteria: &'life2 Criteria,
) -> Pin<Box<dyn Future<Output = DMSCResult<bool>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl<E> Freeze for DMSCORMSimpleRepository<E>
impl<E> RefUnwindSafe for DMSCORMSimpleRepository<E>where
E: RefUnwindSafe,
impl<E> Send for DMSCORMSimpleRepository<E>
impl<E> Sync for DMSCORMSimpleRepository<E>
impl<E> Unpin for DMSCORMSimpleRepository<E>where
E: Unpin,
impl<E> UnwindSafe for DMSCORMSimpleRepository<E>where
E: UnwindSafe,
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request