#[non_exhaustive]pub struct UpdatePullRequestCommentRequest {
pub pull_request_comment: Option<PullRequestComment>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Expand description
The request to update a pull request comment.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.pull_request_comment: Option<PullRequestComment>Required. The pull request comment to update.
update_mask: Option<FieldMask>Optional. Field mask is used to specify the fields to be overwritten in the
pull request comment resource by the update. Updatable fields are
body.
Implementations§
Source§impl UpdatePullRequestCommentRequest
impl UpdatePullRequestCommentRequest
pub fn new() -> Self
Sourcepub fn set_pull_request_comment<T>(self, v: T) -> Selfwhere
T: Into<PullRequestComment>,
pub fn set_pull_request_comment<T>(self, v: T) -> Selfwhere
T: Into<PullRequestComment>,
Sets the value of pull_request_comment.
§Example
ⓘ
use google_cloud_securesourcemanager_v1::model::PullRequestComment;
let x = UpdatePullRequestCommentRequest::new().set_pull_request_comment(PullRequestComment::default()/* use setters */);Sourcepub fn set_or_clear_pull_request_comment<T>(self, v: Option<T>) -> Selfwhere
T: Into<PullRequestComment>,
pub fn set_or_clear_pull_request_comment<T>(self, v: Option<T>) -> Selfwhere
T: Into<PullRequestComment>,
Sets or clears the value of pull_request_comment.
§Example
ⓘ
use google_cloud_securesourcemanager_v1::model::PullRequestComment;
let x = UpdatePullRequestCommentRequest::new().set_or_clear_pull_request_comment(Some(PullRequestComment::default()/* use setters */));
let x = UpdatePullRequestCommentRequest::new().set_or_clear_pull_request_comment(None::<PullRequestComment>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdatePullRequestCommentRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdatePullRequestCommentRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdatePullRequestCommentRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdatePullRequestCommentRequest
impl Clone for UpdatePullRequestCommentRequest
Source§fn clone(&self) -> UpdatePullRequestCommentRequest
fn clone(&self) -> UpdatePullRequestCommentRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for UpdatePullRequestCommentRequest
impl Default for UpdatePullRequestCommentRequest
Source§fn default() -> UpdatePullRequestCommentRequest
fn default() -> UpdatePullRequestCommentRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for UpdatePullRequestCommentRequest
impl PartialEq for UpdatePullRequestCommentRequest
Source§fn eq(&self, other: &UpdatePullRequestCommentRequest) -> bool
fn eq(&self, other: &UpdatePullRequestCommentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for UpdatePullRequestCommentRequest
Auto Trait Implementations§
impl Freeze for UpdatePullRequestCommentRequest
impl RefUnwindSafe for UpdatePullRequestCommentRequest
impl Send for UpdatePullRequestCommentRequest
impl Sync for UpdatePullRequestCommentRequest
impl Unpin for UpdatePullRequestCommentRequest
impl UnwindSafe for UpdatePullRequestCommentRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more