pub struct GroupRepository { /* private fields */ }Implementations§
Trait Implementations§
Source§impl BaseRepository for GroupRepository
impl BaseRepository for GroupRepository
Source§type PkType = i32
type PkType = i32
The type of the primary key. It can consist of a tuple of multiple types if a compound key is used
Source§async fn get_entities(
&self,
page: i32,
page_size: i32,
order_by: &'static str,
direction: PaginationOrder,
) -> Result<Vec<Self::Entity>>
async fn get_entities( &self, page: i32, page_size: i32, order_by: &'static str, direction: PaginationOrder, ) -> Result<Vec<Self::Entity>>
Gets a list of entities respecting the PaginationQuery Read more
Source§async fn get_entity(&self, pk: Self::PkType) -> Result<Self::Entity>
async fn get_entity(&self, pk: Self::PkType) -> Result<Self::Entity>
Gets a single entity by it’s primary key(s)
Source§async fn update_entity(&self, entity: Self::Entity) -> Result<u64>
async fn update_entity(&self, entity: Self::Entity) -> Result<u64>
Updates an entity. Reads the primary key(s) from the input
Source§impl Clone for GroupRepository
impl Clone for GroupRepository
Source§fn clone(&self) -> GroupRepository
fn clone(&self) -> GroupRepository
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<State> FromState<State> for GroupRepository
impl<State> FromState<State> for GroupRepository
fn from_state(state: &State) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for GroupRepository
impl !UnwindSafe for GroupRepository
impl Freeze for GroupRepository
impl Send for GroupRepository
impl Sync for GroupRepository
impl Unpin for GroupRepository
impl UnsafeUnpin for GroupRepository
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,
impl<T> ErasedDestructor for Twhere
T: 'static,
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