google-maps-mapsplatformdatasets-v1 1.0.0

Google Cloud Client Libraries for Rust - Maps Platform Datasets API
Documentation
// Copyright 2026 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by sidekick. DO NOT EDIT.

/// A dyn-compatible, crate-private version of [super::MapsPlatformDatasets].
#[async_trait::async_trait]
pub trait MapsPlatformDatasets: std::fmt::Debug + Send + Sync {
    async fn create_dataset(
        &self,
        req: crate::model::CreateDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>>;

    async fn update_dataset_metadata(
        &self,
        req: crate::model::UpdateDatasetMetadataRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>>;

    async fn get_dataset(
        &self,
        req: crate::model::GetDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>>;

    async fn fetch_dataset_errors(
        &self,
        req: crate::model::FetchDatasetErrorsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::FetchDatasetErrorsResponse>>;

    async fn list_datasets(
        &self,
        req: crate::model::ListDatasetsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListDatasetsResponse>>;

    async fn delete_dataset(
        &self,
        req: crate::model::DeleteDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>>;
}

/// All implementations of [super::MapsPlatformDatasets] also implement [MapsPlatformDatasets].
#[async_trait::async_trait]
impl<T: super::MapsPlatformDatasets> MapsPlatformDatasets for T {
    /// Forwards the call to the implementation provided by `T`.
    async fn create_dataset(
        &self,
        req: crate::model::CreateDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>> {
        T::create_dataset(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn update_dataset_metadata(
        &self,
        req: crate::model::UpdateDatasetMetadataRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>> {
        T::update_dataset_metadata(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn get_dataset(
        &self,
        req: crate::model::GetDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::Dataset>> {
        T::get_dataset(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn fetch_dataset_errors(
        &self,
        req: crate::model::FetchDatasetErrorsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::FetchDatasetErrorsResponse>> {
        T::fetch_dataset_errors(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn list_datasets(
        &self,
        req: crate::model::ListDatasetsRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<crate::model::ListDatasetsResponse>> {
        T::list_datasets(self, req, options).await
    }

    /// Forwards the call to the implementation provided by `T`.
    async fn delete_dataset(
        &self,
        req: crate::model::DeleteDatasetRequest,
        options: crate::RequestOptions,
    ) -> crate::Result<crate::Response<()>> {
        T::delete_dataset(self, req, options).await
    }
}