pub struct UserPermissionRepository { /* private fields */ }Trait Implementations§
Source§impl BaseRepository for UserPermissionRepository
impl BaseRepository for UserPermissionRepository
Source§async fn update_entity(&self, entity: Self::Entity) -> Result<u64>
async fn update_entity(&self, entity: Self::Entity) -> Result<u64>
There is nothing to be updated here
Source§type Entity = UserPermission
type Entity = UserPermission
The entity that this repository will output
Source§type PkType = (i32, i32)
type PkType = (i32, 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§impl Clone for UserPermissionRepository
impl Clone for UserPermissionRepository
Source§fn clone(&self) -> UserPermissionRepository
fn clone(&self) -> UserPermissionRepository
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 UserPermissionRepository
impl<State> FromState<State> for UserPermissionRepository
fn from_state(state: &State) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for UserPermissionRepository
impl !UnwindSafe for UserPermissionRepository
impl Freeze for UserPermissionRepository
impl Send for UserPermissionRepository
impl Sync for UserPermissionRepository
impl Unpin for UserPermissionRepository
impl UnsafeUnpin for UserPermissionRepository
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