Struct minerva_user::service::UserService
source · [−]Expand description
Represents a gRPC service for user.
Fields
pools: HashMap<String, (DBPool, LapinPool)>
Holds database connection pools for all tenants.
Trait Implementations
sourceimpl Clone for UserService
impl Clone for UserService
sourcefn clone(&self) -> UserService
fn clone(&self) -> UserService
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl User for UserService
impl User for UserService
sourcefn index<'life0, 'async_trait>(
&'life0 self,
req: Request<PageIndex>
) -> Pin<Box<dyn Future<Output = Result<Response<UserList>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn index<'life0, 'async_trait>(
&'life0 self,
req: Request<PageIndex>
) -> Pin<Box<dyn Future<Output = Result<Response<UserList>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
List all users, given a page index.
sourcefn show<'life0, 'async_trait>(
&'life0 self,
req: Request<EntityIndex>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn show<'life0, 'async_trait>(
&'life0 self,
req: Request<EntityIndex>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Show a specific user, given its index.
sourcefn store<'life0, 'async_trait>(
&'life0 self,
req: Request<User>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
fn store<'life0, 'async_trait>(
&'life0 self,
req: Request<User>
) -> Pin<Box<dyn Future<Output = Result<Response<User>, Status>> + Send + 'async_trait>>where
'life0: 'async_trait,
Self: 'async_trait,
Include a new user and return it.
Auto Trait Implementations
impl !RefUnwindSafe for UserService
impl Send for UserService
impl Sync for UserService
impl Unpin for UserService
impl !UnwindSafe for UserService
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
impl<T> IntoCollection<T> for T
impl<T> IntoCollection<T> for T
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
fn into_collection<A>(self) -> SmallVec<A>where
A: Array<Item = T>,
Converts
self
into a collection.fn mapped<U, F, A>(self, f: F) -> SmallVec<A>where
F: FnMut(T) -> U,
A: Array<Item = U>,
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request