‫Struct 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].

דוגם

 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].