#[non_exhaustive]pub struct CreateIssueCommentRequest {
pub parent: String,
pub issue_comment: Option<IssueComment>,
/* private fields */
}Expand description
The request to create an issue 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.parent: StringRequired. The issue in which to create the issue comment. Format:
projects/{project_number}/locations/{location_id}/repositories/{repository_id}/issues/{issue_id}
issue_comment: Option<IssueComment>Required. The issue comment to create.
Implementations§
Source§impl CreateIssueCommentRequest
impl CreateIssueCommentRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_issue_comment<T>(self, v: T) -> Selfwhere
T: Into<IssueComment>,
pub fn set_issue_comment<T>(self, v: T) -> Selfwhere
T: Into<IssueComment>,
Sets the value of issue_comment.
Sourcepub fn set_or_clear_issue_comment<T>(self, v: Option<T>) -> Selfwhere
T: Into<IssueComment>,
pub fn set_or_clear_issue_comment<T>(self, v: Option<T>) -> Selfwhere
T: Into<IssueComment>,
Sets or clears the value of issue_comment.
Trait Implementations§
Source§impl Clone for CreateIssueCommentRequest
impl Clone for CreateIssueCommentRequest
Source§fn clone(&self) -> CreateIssueCommentRequest
fn clone(&self) -> CreateIssueCommentRequest
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 Debug for CreateIssueCommentRequest
impl Debug for CreateIssueCommentRequest
Source§impl Default for CreateIssueCommentRequest
impl Default for CreateIssueCommentRequest
Source§fn default() -> CreateIssueCommentRequest
fn default() -> CreateIssueCommentRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateIssueCommentRequest
impl Message for CreateIssueCommentRequest
impl StructuralPartialEq for CreateIssueCommentRequest
Auto Trait Implementations§
impl Freeze for CreateIssueCommentRequest
impl RefUnwindSafe for CreateIssueCommentRequest
impl Send for CreateIssueCommentRequest
impl Sync for CreateIssueCommentRequest
impl Unpin for CreateIssueCommentRequest
impl UnwindSafe for CreateIssueCommentRequest
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