google-shopping-css-v1 1.0.0

Google Cloud Client Libraries for Rust - CSS 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.

//! Traits to mock the clients in this library.
//!
//! Application developers may need to mock the clients in this library to test
//! how their application works with different (and sometimes hard to trigger)
//! client and service behavior. Such test can define mocks implementing the
//! trait(s) defined in this module, initialize the client with an instance of
//! this mock in their tests, and verify their application responds as expected.

#![allow(rustdoc::broken_intra_doc_links)]

pub(crate) mod dynamic;

/// Defines the trait used to implement [super::client::AccountsService].
///
/// Application developers may need to implement this trait to mock
/// `client::AccountsService`.  In other use-cases, application developers only
/// use `client::AccountsService` 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.
pub trait AccountsService: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::AccountsService::list_child_accounts].
    fn list_child_accounts(
        &self,
        _req: crate::model::ListChildAccountsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListChildAccountsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::AccountsService::get_account].
    fn get_account(
        &self,
        _req: crate::model::GetAccountRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Account>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::AccountsService::update_labels].
    fn update_labels(
        &self,
        _req: crate::model::UpdateAccountLabelsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::Account>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }
}

/// Defines the trait used to implement [super::client::AccountLabelsService].
///
/// Application developers may need to implement this trait to mock
/// `client::AccountLabelsService`.  In other use-cases, application developers only
/// use `client::AccountLabelsService` 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.
pub trait AccountLabelsService: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::AccountLabelsService::list_account_labels].
    fn list_account_labels(
        &self,
        _req: crate::model::ListAccountLabelsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListAccountLabelsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::AccountLabelsService::create_account_label].
    fn create_account_label(
        &self,
        _req: crate::model::CreateAccountLabelRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::AccountLabel>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::AccountLabelsService::update_account_label].
    fn update_account_label(
        &self,
        _req: crate::model::UpdateAccountLabelRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::AccountLabel>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::AccountLabelsService::delete_account_label].
    fn delete_account_label(
        &self,
        _req: crate::model::DeleteAccountLabelRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
        gaxi::unimplemented::unimplemented_stub()
    }
}

/// Defines the trait used to implement [super::client::CssProductInputsService].
///
/// Application developers may need to implement this trait to mock
/// `client::CssProductInputsService`.  In other use-cases, application developers only
/// use `client::CssProductInputsService` 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.
pub trait CssProductInputsService: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::CssProductInputsService::insert_css_product_input].
    fn insert_css_product_input(
        &self,
        _req: crate::model::InsertCssProductInputRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::CssProductInput>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CssProductInputsService::update_css_product_input].
    fn update_css_product_input(
        &self,
        _req: crate::model::UpdateCssProductInputRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::CssProductInput>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CssProductInputsService::delete_css_product_input].
    fn delete_css_product_input(
        &self,
        _req: crate::model::DeleteCssProductInputRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<()>>> + Send {
        gaxi::unimplemented::unimplemented_stub()
    }
}

/// Defines the trait used to implement [super::client::CssProductsService].
///
/// Application developers may need to implement this trait to mock
/// `client::CssProductsService`.  In other use-cases, application developers only
/// use `client::CssProductsService` 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.
pub trait CssProductsService: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::CssProductsService::get_css_product].
    fn get_css_product(
        &self,
        _req: crate::model::GetCssProductRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<Output = crate::Result<crate::Response<crate::model::CssProduct>>> + Send
    {
        gaxi::unimplemented::unimplemented_stub()
    }

    /// Implements [super::client::CssProductsService::list_css_products].
    fn list_css_products(
        &self,
        _req: crate::model::ListCssProductsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListCssProductsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }
}

/// Defines the trait used to implement [super::client::QuotaService].
///
/// Application developers may need to implement this trait to mock
/// `client::QuotaService`.  In other use-cases, application developers only
/// use `client::QuotaService` 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.
pub trait QuotaService: std::fmt::Debug + Send + Sync {
    /// Implements [super::client::QuotaService::list_quota_groups].
    fn list_quota_groups(
        &self,
        _req: crate::model::ListQuotaGroupsRequest,
        _options: crate::RequestOptions,
    ) -> impl std::future::Future<
        Output = crate::Result<crate::Response<crate::model::ListQuotaGroupsResponse>>,
    > + Send {
        gaxi::unimplemented::unimplemented_stub()
    }
}