Skip to main content

DatasetService

Trait DatasetService 

Source
pub trait DatasetService:
    Debug
    + Send
    + Sync {
    // Provided methods
    fn get_dataset(
        &self,
        _req: GetDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... }
    fn insert_dataset(
        &self,
        _req: InsertDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... }
    fn patch_dataset(
        &self,
        _req: UpdateOrPatchDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... }
    fn update_dataset(
        &self,
        _req: UpdateOrPatchDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... }
    fn delete_dataset(
        &self,
        _req: DeleteDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<()>>> + Send { ... }
    fn list_datasets(
        &self,
        _req: ListDatasetsRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<DatasetList>>> + Send { ... }
    fn undelete_dataset(
        &self,
        _req: UndeleteDatasetRequest,
        _options: RequestOptions,
    ) -> impl Future<Output = Result<Response<Dataset>>> + Send { ... }
}
Expand description

Defines the trait used to implement super::client::DatasetService.

Application developers may need to implement this trait to mock client::DatasetService. In other use-cases, application developers only use client::DatasetService and need not be concerned with this trait or its implementations.

Services gain new RPCs routinely. Consequently, this trait gains new methods too. To avoid breaking applications the trait provides a default implementation of each method. Most of these implementations just return an error.

Provided Methods§

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§