구조체 SetDefaultBranch(0.5.0)

[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

모든 옵션을 설정하여 이전 값을 대체합니다.

보내기

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] 값을 설정합니다.