google_shopping_css_v1/lib.rs
1// Copyright 2026 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14//
15// Code generated by sidekick. DO NOT EDIT.
16
17//! Google Cloud Client Libraries for Rust - CSS API
18//!
19//! This crate contains traits, types, and functions to interact with CSS API
20//! Most applications will use the structs defined in the [client] module.
21//!
22//! The client library types and functions are stable and not expected to change.
23//! Please note that Google Cloud services do change from time to time. The client
24//! libraries are designed to preserve backwards compatibility when the service
25//! changes in compatible ways. For example, adding RPCs, or fields to messages
26//! should not introduce breaking changes to the client libraries.
27//!
28//! # Available Clients
29//!
30//! * [AccountsService](client/struct.AccountsService.html)
31//! * [AccountLabelsService](client/struct.AccountLabelsService.html)
32//! * [CssProductInputsService](client/struct.CssProductInputsService.html)
33//! * [CssProductsService](client/struct.CssProductsService.html)
34//! * [QuotaService](client/struct.QuotaService.html)
35//!
36//! # Features
37//!
38//! - `default-rustls-provider`: enabled by default. Use the default rustls
39//! crypto provider ([aws-lc-rs]) for TLS and authentication. Applications
40//! with specific requirements for cryptography (such as exclusively using the
41//! [ring] crate) should disable this default and call
42//! `rustls::crypto::CryptoProvider::install_default()`.
43//!
44//! [aws-lc-rs]: https://crates.io/crates/aws-lc-rs
45//! [ring]: https://crates.io/crates/ring
46
47#![allow(deprecated)]
48
49/// The messages and enums that are part of this client library.
50#[allow(clippy::module_inception)]
51pub mod model;
52
53pub use google_cloud_gax::Result;
54pub use google_cloud_gax::error::Error;
55
56#[allow(rustdoc::invalid_html_tags)]
57#[allow(rustdoc::redundant_explicit_links)]
58pub mod stub;
59
60///
61/// # Example
62/// ```
63/// # use google_shopping_css_v1::client::CssProductInputsService;
64/// async fn sample(
65/// account_id: &str,
66/// css_product_input_id: &str,
67/// ) -> anyhow::Result<()> {
68/// let client = CssProductInputsService::builder().build().await?;
69/// client.delete_css_product_input()
70/// .set_name(format!("accounts/{account_id}/cssProductInputs/{css_product_input_id}"))
71/// .send().await?;
72/// Ok(())
73/// }
74/// ```
75/// Concrete implementations of this client library traits.
76pub mod client;
77
78/// Request builders.
79pub mod builder;
80
81#[doc(hidden)]
82pub(crate) mod tracing;
83
84#[doc(hidden)]
85pub(crate) mod transport;
86
87/// The default host used by the service.
88const DEFAULT_HOST: &str = "https://css.googleapis.com/";
89
90pub(crate) mod info {
91 const NAME: &str = env!("CARGO_PKG_NAME");
92 const VERSION: &str = env!("CARGO_PKG_VERSION");
93 pub(crate) static X_GOOG_API_CLIENT_HEADER: std::sync::LazyLock<String> =
94 std::sync::LazyLock::new(|| {
95 let ac = gaxi::api_header::XGoogApiClient {
96 name: NAME,
97 version: VERSION,
98 library_type: gaxi::api_header::GAPIC,
99 };
100 ac.rest_header_value()
101 });
102}
103
104// Define some shortcuts for imported crates.
105pub(crate) use google_cloud_gax::client_builder::ClientBuilder;
106pub(crate) use google_cloud_gax::client_builder::Result as ClientBuilderResult;
107pub(crate) use google_cloud_gax::client_builder::internal::ClientFactory;
108pub(crate) use google_cloud_gax::client_builder::internal::new_builder as new_client_builder;
109pub(crate) use google_cloud_gax::options::RequestOptions;
110pub(crate) use google_cloud_gax::options::internal::RequestBuilder;
111pub(crate) use google_cloud_gax::response::Response;