pub struct StoreServiceClient<T> { /* private fields */ }Expand description
Store service definition with CRUD operations
Implementations§
Source§impl<T> StoreServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> StoreServiceClient<T>where
T: GrpcService<BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
pub fn with_origin(inner: T, origin: Uri) -> Self
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> StoreServiceClient<InterceptedService<T, F>>where
F: Interceptor,
T::ResponseBody: Default,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Sourcepub fn send_compressed(self, encoding: CompressionEncoding) -> Self
pub fn send_compressed(self, encoding: CompressionEncoding) -> Self
Compress requests with the given encoding.
This requires the server to support it otherwise it might respond with an error.
Sourcepub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self
Enable decompressing responses.
Sourcepub fn max_decoding_message_size(self, limit: usize) -> Self
pub fn max_decoding_message_size(self, limit: usize) -> Self
Limits the maximum size of a decoded message.
Default: 4MB
Sourcepub fn max_encoding_message_size(self, limit: usize) -> Self
pub fn max_encoding_message_size(self, limit: usize) -> Self
Limits the maximum size of an encoded message.
Default: usize::MAX
Sourcepub async fn create_items(
&mut self,
request: impl IntoRequest<CreateItemsRequest>,
) -> Result<Response<CreateItemsResponse>, Status>
pub async fn create_items( &mut self, request: impl IntoRequest<CreateItemsRequest>, ) -> Result<Response<CreateItemsResponse>, Status>
Create a new Items
Sourcepub async fn get_items(
&mut self,
request: impl IntoRequest<GetItemsRequest>,
) -> Result<Response<GetItemsResponse>, Status>
pub async fn get_items( &mut self, request: impl IntoRequest<GetItemsRequest>, ) -> Result<Response<GetItemsResponse>, Status>
Get a Items by ID
Sourcepub async fn update_items(
&mut self,
request: impl IntoRequest<UpdateItemsRequest>,
) -> Result<Response<UpdateItemsResponse>, Status>
pub async fn update_items( &mut self, request: impl IntoRequest<UpdateItemsRequest>, ) -> Result<Response<UpdateItemsResponse>, Status>
Update an existing Items
Sourcepub async fn delete_items(
&mut self,
request: impl IntoRequest<DeleteItemsRequest>,
) -> Result<Response<DeleteItemsResponse>, Status>
pub async fn delete_items( &mut self, request: impl IntoRequest<DeleteItemsRequest>, ) -> Result<Response<DeleteItemsResponse>, Status>
Delete a Items by ID
Sourcepub async fn create_packets(
&mut self,
request: impl IntoRequest<CreatePacketsRequest>,
) -> Result<Response<CreatePacketsResponse>, Status>
pub async fn create_packets( &mut self, request: impl IntoRequest<CreatePacketsRequest>, ) -> Result<Response<CreatePacketsResponse>, Status>
Create a new Packets
Sourcepub async fn get_packets(
&mut self,
request: impl IntoRequest<GetPacketsRequest>,
) -> Result<Response<GetPacketsResponse>, Status>
pub async fn get_packets( &mut self, request: impl IntoRequest<GetPacketsRequest>, ) -> Result<Response<GetPacketsResponse>, Status>
Get a Packets by ID
Sourcepub async fn update_packets(
&mut self,
request: impl IntoRequest<UpdatePacketsRequest>,
) -> Result<Response<UpdatePacketsResponse>, Status>
pub async fn update_packets( &mut self, request: impl IntoRequest<UpdatePacketsRequest>, ) -> Result<Response<UpdatePacketsResponse>, Status>
Update an existing Packets
Sourcepub async fn delete_packets(
&mut self,
request: impl IntoRequest<DeletePacketsRequest>,
) -> Result<Response<DeletePacketsResponse>, Status>
pub async fn delete_packets( &mut self, request: impl IntoRequest<DeletePacketsRequest>, ) -> Result<Response<DeletePacketsResponse>, Status>
Delete a Packets by ID
Sourcepub async fn create_connections(
&mut self,
request: impl IntoRequest<CreateConnectionsRequest>,
) -> Result<Response<CreateConnectionsResponse>, Status>
pub async fn create_connections( &mut self, request: impl IntoRequest<CreateConnectionsRequest>, ) -> Result<Response<CreateConnectionsResponse>, Status>
Create a new Connections
Sourcepub async fn get_connections(
&mut self,
request: impl IntoRequest<GetConnectionsRequest>,
) -> Result<Response<GetConnectionsResponse>, Status>
pub async fn get_connections( &mut self, request: impl IntoRequest<GetConnectionsRequest>, ) -> Result<Response<GetConnectionsResponse>, Status>
Get a Connections by ID
Sourcepub async fn update_connections(
&mut self,
request: impl IntoRequest<UpdateConnectionsRequest>,
) -> Result<Response<UpdateConnectionsResponse>, Status>
pub async fn update_connections( &mut self, request: impl IntoRequest<UpdateConnectionsRequest>, ) -> Result<Response<UpdateConnectionsResponse>, Status>
Update an existing Connections
Sourcepub async fn delete_connections(
&mut self,
request: impl IntoRequest<DeleteConnectionsRequest>,
) -> Result<Response<DeleteConnectionsResponse>, Status>
pub async fn delete_connections( &mut self, request: impl IntoRequest<DeleteConnectionsRequest>, ) -> Result<Response<DeleteConnectionsResponse>, Status>
Delete a Connections by ID
Sourcepub async fn create_crdt_messages(
&mut self,
request: impl IntoRequest<CreateCrdtMessagesRequest>,
) -> Result<Response<CreateCrdtMessagesResponse>, Status>
pub async fn create_crdt_messages( &mut self, request: impl IntoRequest<CreateCrdtMessagesRequest>, ) -> Result<Response<CreateCrdtMessagesResponse>, Status>
Create a new CrdtMessages
Sourcepub async fn get_crdt_messages(
&mut self,
request: impl IntoRequest<GetCrdtMessagesRequest>,
) -> Result<Response<GetCrdtMessagesResponse>, Status>
pub async fn get_crdt_messages( &mut self, request: impl IntoRequest<GetCrdtMessagesRequest>, ) -> Result<Response<GetCrdtMessagesResponse>, Status>
Get a CrdtMessages by ID
Sourcepub async fn update_crdt_messages(
&mut self,
request: impl IntoRequest<UpdateCrdtMessagesRequest>,
) -> Result<Response<UpdateCrdtMessagesResponse>, Status>
pub async fn update_crdt_messages( &mut self, request: impl IntoRequest<UpdateCrdtMessagesRequest>, ) -> Result<Response<UpdateCrdtMessagesResponse>, Status>
Update an existing CrdtMessages
Sourcepub async fn delete_crdt_messages(
&mut self,
request: impl IntoRequest<DeleteCrdtMessagesRequest>,
) -> Result<Response<DeleteCrdtMessagesResponse>, Status>
pub async fn delete_crdt_messages( &mut self, request: impl IntoRequest<DeleteCrdtMessagesRequest>, ) -> Result<Response<DeleteCrdtMessagesResponse>, Status>
Delete a CrdtMessages by ID
Sourcepub async fn create_crdt_merkles(
&mut self,
request: impl IntoRequest<CreateCrdtMerklesRequest>,
) -> Result<Response<CreateCrdtMerklesResponse>, Status>
pub async fn create_crdt_merkles( &mut self, request: impl IntoRequest<CreateCrdtMerklesRequest>, ) -> Result<Response<CreateCrdtMerklesResponse>, Status>
Create a new CrdtMerkles
Sourcepub async fn get_crdt_merkles(
&mut self,
request: impl IntoRequest<GetCrdtMerklesRequest>,
) -> Result<Response<GetCrdtMerklesResponse>, Status>
pub async fn get_crdt_merkles( &mut self, request: impl IntoRequest<GetCrdtMerklesRequest>, ) -> Result<Response<GetCrdtMerklesResponse>, Status>
Get a CrdtMerkles by ID
Sourcepub async fn update_crdt_merkles(
&mut self,
request: impl IntoRequest<UpdateCrdtMerklesRequest>,
) -> Result<Response<UpdateCrdtMerklesResponse>, Status>
pub async fn update_crdt_merkles( &mut self, request: impl IntoRequest<UpdateCrdtMerklesRequest>, ) -> Result<Response<UpdateCrdtMerklesResponse>, Status>
Update an existing CrdtMerkles
Sourcepub async fn delete_crdt_merkles(
&mut self,
request: impl IntoRequest<DeleteCrdtMerklesRequest>,
) -> Result<Response<DeleteCrdtMerklesResponse>, Status>
pub async fn delete_crdt_merkles( &mut self, request: impl IntoRequest<DeleteCrdtMerklesRequest>, ) -> Result<Response<DeleteCrdtMerklesResponse>, Status>
Delete a CrdtMerkles by ID
Sourcepub async fn create_sync_endpoints(
&mut self,
request: impl IntoRequest<CreateSyncEndpointsRequest>,
) -> Result<Response<CreateSyncEndpointsResponse>, Status>
pub async fn create_sync_endpoints( &mut self, request: impl IntoRequest<CreateSyncEndpointsRequest>, ) -> Result<Response<CreateSyncEndpointsResponse>, Status>
Create a new SyncEndpoints
Sourcepub async fn get_sync_endpoints(
&mut self,
request: impl IntoRequest<GetSyncEndpointsRequest>,
) -> Result<Response<GetSyncEndpointsResponse>, Status>
pub async fn get_sync_endpoints( &mut self, request: impl IntoRequest<GetSyncEndpointsRequest>, ) -> Result<Response<GetSyncEndpointsResponse>, Status>
Get a SyncEndpoints by ID
Sourcepub async fn update_sync_endpoints(
&mut self,
request: impl IntoRequest<UpdateSyncEndpointsRequest>,
) -> Result<Response<UpdateSyncEndpointsResponse>, Status>
pub async fn update_sync_endpoints( &mut self, request: impl IntoRequest<UpdateSyncEndpointsRequest>, ) -> Result<Response<UpdateSyncEndpointsResponse>, Status>
Update an existing SyncEndpoints
Sourcepub async fn delete_sync_endpoints(
&mut self,
request: impl IntoRequest<DeleteSyncEndpointsRequest>,
) -> Result<Response<DeleteSyncEndpointsResponse>, Status>
pub async fn delete_sync_endpoints( &mut self, request: impl IntoRequest<DeleteSyncEndpointsRequest>, ) -> Result<Response<DeleteSyncEndpointsResponse>, Status>
Delete a SyncEndpoints by ID
Sourcepub async fn create_queues(
&mut self,
request: impl IntoRequest<CreateQueuesRequest>,
) -> Result<Response<CreateQueuesResponse>, Status>
pub async fn create_queues( &mut self, request: impl IntoRequest<CreateQueuesRequest>, ) -> Result<Response<CreateQueuesResponse>, Status>
Create a new Queues
Sourcepub async fn get_queues(
&mut self,
request: impl IntoRequest<GetQueuesRequest>,
) -> Result<Response<GetQueuesResponse>, Status>
pub async fn get_queues( &mut self, request: impl IntoRequest<GetQueuesRequest>, ) -> Result<Response<GetQueuesResponse>, Status>
Get a Queues by ID
Sourcepub async fn update_queues(
&mut self,
request: impl IntoRequest<UpdateQueuesRequest>,
) -> Result<Response<UpdateQueuesResponse>, Status>
pub async fn update_queues( &mut self, request: impl IntoRequest<UpdateQueuesRequest>, ) -> Result<Response<UpdateQueuesResponse>, Status>
Update an existing Queues
Sourcepub async fn delete_queues(
&mut self,
request: impl IntoRequest<DeleteQueuesRequest>,
) -> Result<Response<DeleteQueuesResponse>, Status>
pub async fn delete_queues( &mut self, request: impl IntoRequest<DeleteQueuesRequest>, ) -> Result<Response<DeleteQueuesResponse>, Status>
Delete a Queues by ID
Sourcepub async fn create_queue_items(
&mut self,
request: impl IntoRequest<CreateQueueItemsRequest>,
) -> Result<Response<CreateQueueItemsResponse>, Status>
pub async fn create_queue_items( &mut self, request: impl IntoRequest<CreateQueueItemsRequest>, ) -> Result<Response<CreateQueueItemsResponse>, Status>
Create a new QueueItems
Sourcepub async fn get_queue_items(
&mut self,
request: impl IntoRequest<GetQueueItemsRequest>,
) -> Result<Response<GetQueueItemsResponse>, Status>
pub async fn get_queue_items( &mut self, request: impl IntoRequest<GetQueueItemsRequest>, ) -> Result<Response<GetQueueItemsResponse>, Status>
Get a QueueItems by ID
Sourcepub async fn update_queue_items(
&mut self,
request: impl IntoRequest<UpdateQueueItemsRequest>,
) -> Result<Response<UpdateQueueItemsResponse>, Status>
pub async fn update_queue_items( &mut self, request: impl IntoRequest<UpdateQueueItemsRequest>, ) -> Result<Response<UpdateQueueItemsResponse>, Status>
Update an existing QueueItems
Sourcepub async fn delete_queue_items(
&mut self,
request: impl IntoRequest<DeleteQueueItemsRequest>,
) -> Result<Response<DeleteQueueItemsResponse>, Status>
pub async fn delete_queue_items( &mut self, request: impl IntoRequest<DeleteQueueItemsRequest>, ) -> Result<Response<DeleteQueueItemsResponse>, Status>
Delete a QueueItems by ID
Sourcepub async fn create_transactions(
&mut self,
request: impl IntoRequest<CreateTransactionsRequest>,
) -> Result<Response<CreateTransactionsResponse>, Status>
pub async fn create_transactions( &mut self, request: impl IntoRequest<CreateTransactionsRequest>, ) -> Result<Response<CreateTransactionsResponse>, Status>
Create a new Transactions
Sourcepub async fn get_transactions(
&mut self,
request: impl IntoRequest<GetTransactionsRequest>,
) -> Result<Response<GetTransactionsResponse>, Status>
pub async fn get_transactions( &mut self, request: impl IntoRequest<GetTransactionsRequest>, ) -> Result<Response<GetTransactionsResponse>, Status>
Get a Transactions by ID
Sourcepub async fn update_transactions(
&mut self,
request: impl IntoRequest<UpdateTransactionsRequest>,
) -> Result<Response<UpdateTransactionsResponse>, Status>
pub async fn update_transactions( &mut self, request: impl IntoRequest<UpdateTransactionsRequest>, ) -> Result<Response<UpdateTransactionsResponse>, Status>
Update an existing Transactions
Sourcepub async fn delete_transactions(
&mut self,
request: impl IntoRequest<DeleteTransactionsRequest>,
) -> Result<Response<DeleteTransactionsResponse>, Status>
pub async fn delete_transactions( &mut self, request: impl IntoRequest<DeleteTransactionsRequest>, ) -> Result<Response<DeleteTransactionsResponse>, Status>
Delete a Transactions by ID
Trait Implementations§
Source§impl<T: Clone> Clone for StoreServiceClient<T>
impl<T: Clone> Clone for StoreServiceClient<T>
Source§fn clone(&self) -> StoreServiceClient<T>
fn clone(&self) -> StoreServiceClient<T>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl<T> !Freeze for StoreServiceClient<T>
impl<T> RefUnwindSafe for StoreServiceClient<T>where
T: RefUnwindSafe,
impl<T> Send for StoreServiceClient<T>where
T: Send,
impl<T> Sync for StoreServiceClient<T>where
T: Sync,
impl<T> Unpin for StoreServiceClient<T>where
T: Unpin,
impl<T> UnwindSafe for StoreServiceClient<T>where
T: UnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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