StoreServiceClient

Struct StoreServiceClient 

Source
pub struct StoreServiceClient<T> { /* private fields */ }
Expand description

Store service definition with CRUD operations

Implementations§

Source§

impl StoreServiceClient<Channel>

Source

pub async fn connect<D>(dst: D) -> Result<Self, Error>
where D: TryInto<Endpoint>, D::Error: Into<StdError>,

Attempt to create a new client by connecting to a given endpoint.

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,

Source

pub fn new(inner: T) -> Self

Source

pub fn with_origin(inner: T, origin: Uri) -> Self

Source

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,

Source

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.

Source

pub fn accept_compressed(self, encoding: CompressionEncoding) -> Self

Enable decompressing responses.

Source

pub fn max_decoding_message_size(self, limit: usize) -> Self

Limits the maximum size of a decoded message.

Default: 4MB

Source

pub fn max_encoding_message_size(self, limit: usize) -> Self

Limits the maximum size of an encoded message.

Default: usize::MAX

Source

pub async fn create_items( &mut self, request: impl IntoRequest<CreateItemsRequest>, ) -> Result<Response<CreateItemsResponse>, Status>

Create a new Items

Source

pub async fn get_items( &mut self, request: impl IntoRequest<GetItemsRequest>, ) -> Result<Response<GetItemsResponse>, Status>

Get a Items by ID

Source

pub async fn update_items( &mut self, request: impl IntoRequest<UpdateItemsRequest>, ) -> Result<Response<UpdateItemsResponse>, Status>

Update an existing Items

Source

pub async fn delete_items( &mut self, request: impl IntoRequest<DeleteItemsRequest>, ) -> Result<Response<DeleteItemsResponse>, Status>

Delete a Items by ID

Source

pub async fn create_packets( &mut self, request: impl IntoRequest<CreatePacketsRequest>, ) -> Result<Response<CreatePacketsResponse>, Status>

Create a new Packets

Source

pub async fn get_packets( &mut self, request: impl IntoRequest<GetPacketsRequest>, ) -> Result<Response<GetPacketsResponse>, Status>

Get a Packets by ID

Source

pub async fn update_packets( &mut self, request: impl IntoRequest<UpdatePacketsRequest>, ) -> Result<Response<UpdatePacketsResponse>, Status>

Update an existing Packets

Source

pub async fn delete_packets( &mut self, request: impl IntoRequest<DeletePacketsRequest>, ) -> Result<Response<DeletePacketsResponse>, Status>

Delete a Packets by ID

Source

pub async fn create_connections( &mut self, request: impl IntoRequest<CreateConnectionsRequest>, ) -> Result<Response<CreateConnectionsResponse>, Status>

Create a new Connections

Source

pub async fn get_connections( &mut self, request: impl IntoRequest<GetConnectionsRequest>, ) -> Result<Response<GetConnectionsResponse>, Status>

Get a Connections by ID

Source

pub async fn update_connections( &mut self, request: impl IntoRequest<UpdateConnectionsRequest>, ) -> Result<Response<UpdateConnectionsResponse>, Status>

Update an existing Connections

Source

pub async fn delete_connections( &mut self, request: impl IntoRequest<DeleteConnectionsRequest>, ) -> Result<Response<DeleteConnectionsResponse>, Status>

Delete a Connections by ID

Source

pub async fn create_crdt_messages( &mut self, request: impl IntoRequest<CreateCrdtMessagesRequest>, ) -> Result<Response<CreateCrdtMessagesResponse>, Status>

Create a new CrdtMessages

Source

pub async fn get_crdt_messages( &mut self, request: impl IntoRequest<GetCrdtMessagesRequest>, ) -> Result<Response<GetCrdtMessagesResponse>, Status>

Get a CrdtMessages by ID

Source

pub async fn update_crdt_messages( &mut self, request: impl IntoRequest<UpdateCrdtMessagesRequest>, ) -> Result<Response<UpdateCrdtMessagesResponse>, Status>

Update an existing CrdtMessages

Source

pub async fn delete_crdt_messages( &mut self, request: impl IntoRequest<DeleteCrdtMessagesRequest>, ) -> Result<Response<DeleteCrdtMessagesResponse>, Status>

Delete a CrdtMessages by ID

Source

pub async fn create_crdt_merkles( &mut self, request: impl IntoRequest<CreateCrdtMerklesRequest>, ) -> Result<Response<CreateCrdtMerklesResponse>, Status>

Create a new CrdtMerkles

Source

pub async fn get_crdt_merkles( &mut self, request: impl IntoRequest<GetCrdtMerklesRequest>, ) -> Result<Response<GetCrdtMerklesResponse>, Status>

Get a CrdtMerkles by ID

Source

pub async fn update_crdt_merkles( &mut self, request: impl IntoRequest<UpdateCrdtMerklesRequest>, ) -> Result<Response<UpdateCrdtMerklesResponse>, Status>

Update an existing CrdtMerkles

Source

pub async fn delete_crdt_merkles( &mut self, request: impl IntoRequest<DeleteCrdtMerklesRequest>, ) -> Result<Response<DeleteCrdtMerklesResponse>, Status>

Delete a CrdtMerkles by ID

Source

pub async fn create_sync_endpoints( &mut self, request: impl IntoRequest<CreateSyncEndpointsRequest>, ) -> Result<Response<CreateSyncEndpointsResponse>, Status>

Create a new SyncEndpoints

Source

pub async fn get_sync_endpoints( &mut self, request: impl IntoRequest<GetSyncEndpointsRequest>, ) -> Result<Response<GetSyncEndpointsResponse>, Status>

Get a SyncEndpoints by ID

Source

pub async fn update_sync_endpoints( &mut self, request: impl IntoRequest<UpdateSyncEndpointsRequest>, ) -> Result<Response<UpdateSyncEndpointsResponse>, Status>

Update an existing SyncEndpoints

Source

pub async fn delete_sync_endpoints( &mut self, request: impl IntoRequest<DeleteSyncEndpointsRequest>, ) -> Result<Response<DeleteSyncEndpointsResponse>, Status>

Delete a SyncEndpoints by ID

Source

pub async fn create_queues( &mut self, request: impl IntoRequest<CreateQueuesRequest>, ) -> Result<Response<CreateQueuesResponse>, Status>

Create a new Queues

Source

pub async fn get_queues( &mut self, request: impl IntoRequest<GetQueuesRequest>, ) -> Result<Response<GetQueuesResponse>, Status>

Get a Queues by ID

Source

pub async fn update_queues( &mut self, request: impl IntoRequest<UpdateQueuesRequest>, ) -> Result<Response<UpdateQueuesResponse>, Status>

Update an existing Queues

Source

pub async fn delete_queues( &mut self, request: impl IntoRequest<DeleteQueuesRequest>, ) -> Result<Response<DeleteQueuesResponse>, Status>

Delete a Queues by ID

Source

pub async fn create_queue_items( &mut self, request: impl IntoRequest<CreateQueueItemsRequest>, ) -> Result<Response<CreateQueueItemsResponse>, Status>

Create a new QueueItems

Source

pub async fn get_queue_items( &mut self, request: impl IntoRequest<GetQueueItemsRequest>, ) -> Result<Response<GetQueueItemsResponse>, Status>

Get a QueueItems by ID

Source

pub async fn update_queue_items( &mut self, request: impl IntoRequest<UpdateQueueItemsRequest>, ) -> Result<Response<UpdateQueueItemsResponse>, Status>

Update an existing QueueItems

Source

pub async fn delete_queue_items( &mut self, request: impl IntoRequest<DeleteQueueItemsRequest>, ) -> Result<Response<DeleteQueueItemsResponse>, Status>

Delete a QueueItems by ID

Source

pub async fn create_transactions( &mut self, request: impl IntoRequest<CreateTransactionsRequest>, ) -> Result<Response<CreateTransactionsResponse>, Status>

Create a new Transactions

Source

pub async fn get_transactions( &mut self, request: impl IntoRequest<GetTransactionsRequest>, ) -> Result<Response<GetTransactionsResponse>, Status>

Get a Transactions by ID

Source

pub async fn update_transactions( &mut self, request: impl IntoRequest<UpdateTransactionsRequest>, ) -> Result<Response<UpdateTransactionsResponse>, Status>

Update an existing Transactions

Source

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>

Source§

fn clone(&self) -> StoreServiceClient<T>

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<T: Debug> Debug for StoreServiceClient<T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto 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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FromRef<T> for T
where T: Clone,

Source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more