Struct svc_storage::grpc::server::group_user::GrpcServer
source · pub struct GrpcServer {}
Expand description
Implementation of gRPC endpoints
Implementations§
Trait Implementations§
source§impl Clone for GrpcServer
impl Clone for GrpcServer
source§fn clone(&self) -> GrpcServer
fn clone(&self) -> GrpcServer
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GrpcServer
impl Debug for GrpcServer
source§impl Default for GrpcServer
impl Default for GrpcServer
source§fn default() -> GrpcServer
fn default() -> GrpcServer
source§impl GrpcLinkService for GrpcServer
impl GrpcLinkService for GrpcServer
§type LinkedResourceObject = ResourceObject<Data>
type LinkedResourceObject = ResourceObject<Data>
ResourceObject<Data>
type of the linked resource.
Must implement; ObjectType<Self::Data>
, PsqlType, PsqlSearch,
LinkedResource<Self::Data>
, From<Id>
, From<Self::Data>
,
From<Self::UpdateObject>
, Clone, sync, send§type LinkedData = Data
type LinkedData = Data
TryFrom<Row>
§type ResourceObject = ResourceObject<Data>
type ResourceObject = ResourceObject<Data>
ResourceObject<Data>
type of the ‘main’ resource.
Must implement; ObjectType<Self::Data>
, PsqlType, PsqlSearch,
SimpleResource<Self::Data>
, From<Id>
, From<Self::Data>
,
From<Self::UpdateObject>
, Clone, sync, send§type Data = Data
type Data = Data
TryFrom<Row>
§type OtherResourceObject = ResourceObject<Data>
type OtherResourceObject = ResourceObject<Data>
ResourceObject<Data>
type of the ‘other’ resource.
Must implement; ObjectType<Self::Data>
, PsqlType, PsqlSearch,
SimpleResource<Self::Data>
, From<Id>
, From<Self::Data>
,
From<Self::UpdateObject>
, Clone, sync, send§type OtherData = Data
type OtherData = Data
TryFrom<Row>
§type OtherList = List
type OtherList = List
TryFrom<[Vec<Row>]>
source§fn generic_link<'life0, 'async_trait>(
&'life0 self,
id: String,
other_ids: Vec<Uuid>,
replace: bool
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn generic_link<'life0, 'async_trait>(
&'life0 self,
id: String,
other_ids: Vec<Uuid>,
replace: bool
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
source§fn generic_unlink<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn generic_unlink<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
source§fn generic_get_linked_ids<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<IdList>, Status>> + Send + 'async_trait>>
fn generic_get_linked_ids<'life0, 'async_trait>( &'life0 self, request: Request<Id> ) -> Pin<Box<dyn Future<Output = Result<Response<IdList>, Status>> + Send + 'async_trait>>
source§fn generic_get_linked<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<Self::OtherList>, Status>> + Send + 'async_trait>>
fn generic_get_linked<'life0, 'async_trait>( &'life0 self, request: Request<Id> ) -> Pin<Box<dyn Future<Output = Result<Response<Self::OtherList>, Status>> + Send + 'async_trait>>
source§fn _get_linked<'async_trait>(
id: Id
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ArrErr>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
fn _get_linked<'async_trait>(
id: Id
) -> Pin<Box<dyn Future<Output = Result<Vec<String>, ArrErr>> + Send + 'async_trait>>where
Self: Send + 'async_trait,
generic_get_linked_ids
and generic_get_linked
source§fn generic_is_ready<'life0, 'async_trait>(
&'life0 self,
_request: Request<ReadyRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReadyResponse>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
fn generic_is_ready<'life0, 'async_trait>(
&'life0 self,
_request: Request<ReadyRequest>
) -> Pin<Box<dyn Future<Output = Result<Response<ReadyResponse>, Status>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
source§impl RpcUserLink for GrpcServer
impl RpcUserLink for GrpcServer
source§fn link<'life0, 'async_trait>(
&'life0 self,
request: Request<GroupUsers>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn link<'life0, 'async_trait>(
&'life0 self,
request: Request<GroupUsers>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes an GroupUsers
to link the provided user ids in the database.
Errors
Returns tonic::Status
with tonic::Code::NotFound
if the provided id
is not found in the database.
source§fn replace_linked<'life0, 'async_trait>(
&'life0 self,
request: Request<GroupUsers>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn replace_linked<'life0, 'async_trait>(
&'life0 self,
request: Request<GroupUsers>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes an GroupUsers
to replace the provided user linked ids in the database.
Errors
Returns tonic::Status
with tonic::Code::NotFound
if the provided id
is not found in the database.
source§fn unlink<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn unlink<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<()>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes an Id
to unlink all user linked ids in the database.
Errors
Returns tonic::Status
with tonic::Code::NotFound
if the provided id
is not found in the database.
source§fn get_linked_ids<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<IdList>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_linked_ids<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<IdList>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes an Id
to get all user linked ids from the database.
Errors
Returns tonic::Status
with tonic::Code::NotFound
if the provided id
is not found in the database.
source§fn get_linked<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<List>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_linked<'life0, 'async_trait>(
&'life0 self,
request: Request<Id>
) -> Pin<Box<dyn Future<Output = Result<Response<List>, Status>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Takes an Id
to get all user linked objects from the database.
Errors
Returns tonic::Status
with tonic::Code::NotFound
if the provided id
is not found in the database.
impl Copy for GrpcServer
Auto Trait Implementations§
impl RefUnwindSafe for GrpcServer
impl Send for GrpcServer
impl Sync for GrpcServer
impl Unpin for GrpcServer
impl UnwindSafe for GrpcServer
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
§impl<T> CloneAny for T
impl<T> CloneAny for T
§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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request