#[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 ==.impl StructuralPartialEq for CommitDiffSourceCodeTypeBuilder
Auto Trait Implementations§
impl Freeze for CommitDiffSourceCodeTypeBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more