pub struct DatastoreClient { /* private fields */ }
Expand description
A client for interacting with the datastore service.
Implementations§
Source§impl DatastoreClient
impl DatastoreClient
Sourcepub fn new(config: DatastoreConfig) -> Self
pub fn new(config: DatastoreConfig) -> Self
Creates a new instance of DatastoreClient
with the specified configuration.
§Arguments
config
- Configuration for the datastore connection.
Sourcepub async fn login(
&self,
request: Request<LoginRequest>,
) -> Result<LoginResponse, Error>
pub async fn login( &self, request: Request<LoginRequest>, ) -> Result<LoginResponse, Error>
Sourcepub async fn batch_create(
&self,
request: Request<BatchCreateRequest>,
) -> Result<Response, Error>
pub async fn batch_create( &self, request: Request<BatchCreateRequest>, ) -> Result<Response, Error>
Sourcepub async fn get_by_filter(
&self,
request: Request<GetByFilterRequest>,
) -> Result<Response, Error>
pub async fn get_by_filter( &self, request: Request<GetByFilterRequest>, ) -> Result<Response, Error>
Sourcepub async fn aggregate(
&self,
request: Request<AggregateRequest>,
) -> Result<Response, Error>
pub async fn aggregate( &self, request: Request<AggregateRequest>, ) -> Result<Response, Error>
Trait Implementations§
Source§impl Clone for DatastoreClient
impl Clone for DatastoreClient
Source§fn clone(&self) -> DatastoreClient
fn clone(&self) -> DatastoreClient
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl Freeze for DatastoreClient
impl RefUnwindSafe for DatastoreClient
impl Send for DatastoreClient
impl Sync for DatastoreClient
impl Unpin for DatastoreClient
impl UnwindSafe for DatastoreClient
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,
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>
Wrap the input message
T
in a tonic::Request