结构体 UpdatePullRequestComment (0.5.0)

[SecureSourceManager::update_pull_request_comment][crate::client::SecureSourceManager::update_pull_request_comment] 调用的请求构建器。

示例

# use google_cloud_securesourcemanager_v1::builder;
use builder::secure_source_manager::UpdatePullRequestComment;
# tokio_test::block_on(async {
use lro::Poller;

let builder = prepare_request_builder();
let response = builder.poller().until_done().await?;
# gax::Result::<()>::Ok(()) });

fn prepare_request_builder() -> UpdatePullRequestComment {
  # panic!();
  // ... details omitted ...
}

实现

with_request

 fn with_request<V: Into<crate::model::UpdatePullRequestCommentRequest>>(self, v: V) -> Self

设置完整请求,替换所有先前的值。

with_options

 fn with_options<V: Into<gax::options::RequestOptions>>(self, v: V) -> Self

设置所有选项,替换所有先前的值。

send

async fn send(self) -> Result<longrunning::model::Operation>

发送请求。

长时间运行的操作

这会启动一个长时间运行的操作,但不会轮询该操作。如需了解详情,请参阅 [update_pull_request_comment][crate::client::SecureSourceManager::update_pull_request_comment]。

poller

 fn poller(self) -> impl lro::Poller<crate::model::PullRequestComment, crate::model::OperationMetadata>

创建 [Poller][lro::Poller] 以与 update_pull_request_comment 搭配使用。

set_pull_request_comment

 fn set_pull_request_comment<T>(self, v: T) -> Self
where
    T: std::convert::Into<crate::model::PullRequestComment>,

设置 [pull_request_comment][crate::model::UpdatePullRequestCommentRequest::pull_request_comment] 的值。

这是请求的必填字段。

set_or_clear_pull_request_comment

 fn set_or_clear_pull_request_comment<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<crate::model::PullRequestComment>,

设置或清除 [pull_request_comment][crate::model::UpdatePullRequestCommentRequest::pull_request_comment] 的值。

这是请求的必填字段。

set_update_mask

 fn set_update_mask<T>(self, v: T) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

设置 [update_mask][crate::model::UpdatePullRequestCommentRequest::update_mask] 的值。

set_or_clear_update_mask

 fn set_or_clear_update_mask<T>(self, v: std::option::Option<T>) -> Self
where
    T: std::convert::Into<wkt::FieldMask>,

设置或清除 [update_mask][crate::model::UpdatePullRequestCommentRequest::update_mask] 的值。