[CatalogService::set_default_branch][crate::client::CatalogService::set_default_branch] 调用的请求构建器。
示例
# use google_cloud_retail_v2::builder;
use builder::catalog_service::SetDefaultBranch;
# tokio_test::block_on(async {
let builder = prepare_request_builder();
let response = builder.send().await?;
# gax::Result::<()>::Ok(()) });
fn prepare_request_builder() -> SetDefaultBranch {
# panic!();
// ... details omitted ...
}
实现
with_request
fn with_request<V: Into<crate::model::SetDefaultBranchRequest>>(self, v: V) -> Self
设置完整请求,替换所有先前的值。
with_options
fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self
设置所有选项,替换所有先前的值。
send
async fn send(self) -> Result<>
发送请求。
set_catalog
fn set_catalog<T: Into<std::string::String>>(self, v: T) -> Self
设置 [catalog][crate::model::SetDefaultBranchRequest::catalog] 的值。
set_branch_id
fn set_branch_id<T: Into<std::string::String>>(self, v: T) -> Self
设置 [branch_id][crate::model::SetDefaultBranchRequest::branch_id] 的值。
set_note
fn set_note<T: Into<std::string::String>>(self, v: T) -> Self
设置 [note][crate::model::SetDefaultBranchRequest::note] 的值。
set_force
fn set_force<T: Into<bool>>(self, v: T) -> Self
设置 [force][crate::model::SetDefaultBranchRequest::force] 的值。