#[non_exhaustive]pub struct CommitDiffSourceCodeTypeBuilder { /* private fields */ }
Expand description
A builder for CommitDiffSourceCodeType
.
Implementations§
source§impl CommitDiffSourceCodeTypeBuilder
impl CommitDiffSourceCodeTypeBuilder
sourcepub fn source_commit(self, input: impl Into<String>) -> Self
pub fn source_commit(self, input: impl Into<String>) -> Self
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn set_source_commit(self, input: Option<String>) -> Self
pub fn set_source_commit(self, input: Option<String>) -> Self
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn get_source_commit(&self) -> &Option<String>
pub fn get_source_commit(&self) -> &Option<String>
The SHA of the source commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn destination_commit(self, input: impl Into<String>) -> Self
pub fn destination_commit(self, input: impl Into<String>) -> Self
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn set_destination_commit(self, input: Option<String>) -> Self
pub fn set_destination_commit(self, input: Option<String>) -> Self
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn get_destination_commit(&self) -> &Option<String>
pub fn get_destination_commit(&self) -> &Option<String>
The SHA of the destination commit used to generate a commit diff. This field is required for a pull request code review.
sourcepub fn merge_base_commit(self, input: impl Into<String>) -> Self
pub fn merge_base_commit(self, input: impl Into<String>) -> Self
The SHA of the merge base of a commit.
sourcepub fn set_merge_base_commit(self, input: Option<String>) -> Self
pub fn set_merge_base_commit(self, input: Option<String>) -> Self
The SHA of the merge base of a commit.
sourcepub fn get_merge_base_commit(&self) -> &Option<String>
pub fn get_merge_base_commit(&self) -> &Option<String>
The SHA of the merge base of a commit.
sourcepub fn build(self) -> CommitDiffSourceCodeType
pub fn build(self) -> CommitDiffSourceCodeType
Consumes the builder and constructs a CommitDiffSourceCodeType
.
Trait Implementations§
source§impl Clone for CommitDiffSourceCodeTypeBuilder
impl Clone for CommitDiffSourceCodeTypeBuilder
source§fn clone(&self) -> CommitDiffSourceCodeTypeBuilder
fn clone(&self) -> CommitDiffSourceCodeTypeBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CommitDiffSourceCodeTypeBuilder
impl Default for CommitDiffSourceCodeTypeBuilder
source§fn default() -> CommitDiffSourceCodeTypeBuilder
fn default() -> CommitDiffSourceCodeTypeBuilder
source§impl PartialEq for CommitDiffSourceCodeTypeBuilder
impl PartialEq for CommitDiffSourceCodeTypeBuilder
source§fn eq(&self, other: &CommitDiffSourceCodeTypeBuilder) -> bool
fn eq(&self, other: &CommitDiffSourceCodeTypeBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.