#[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 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 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 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
Returns a copy 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 CommitDiffSourceCodeTypeBuilder
impl Default for CommitDiffSourceCodeTypeBuilder
source§fn default() -> CommitDiffSourceCodeTypeBuilder
fn default() -> CommitDiffSourceCodeTypeBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<CommitDiffSourceCodeTypeBuilder> for CommitDiffSourceCodeTypeBuilder
impl PartialEq<CommitDiffSourceCodeTypeBuilder> for CommitDiffSourceCodeTypeBuilder
source§fn eq(&self, other: &CommitDiffSourceCodeTypeBuilder) -> bool
fn eq(&self, other: &CommitDiffSourceCodeTypeBuilder) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for CommitDiffSourceCodeTypeBuilder
Auto Trait Implementations§
impl RefUnwindSafe for CommitDiffSourceCodeTypeBuilder
impl Send for CommitDiffSourceCodeTypeBuilder
impl Sync for CommitDiffSourceCodeTypeBuilder
impl Unpin for CommitDiffSourceCodeTypeBuilder
impl UnwindSafe for CommitDiffSourceCodeTypeBuilder
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