#[non_exhaustive]pub struct BranchDiffSourceCodeType {
pub source_branch_name: String,
pub destination_branch_name: String,
}
Expand description
A type of SourceCodeType that specifies a code diff between a source and destination branch in an associated repository.
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.source_branch_name: String
The source branch for a diff in an associated repository.
destination_branch_name: String
The destination branch for a diff in an associated repository.
Implementations§
source§impl BranchDiffSourceCodeType
impl BranchDiffSourceCodeType
sourcepub fn source_branch_name(&self) -> &str
pub fn source_branch_name(&self) -> &str
The source branch for a diff in an associated repository.
sourcepub fn destination_branch_name(&self) -> &str
pub fn destination_branch_name(&self) -> &str
The destination branch for a diff in an associated repository.
source§impl BranchDiffSourceCodeType
impl BranchDiffSourceCodeType
sourcepub fn builder() -> BranchDiffSourceCodeTypeBuilder
pub fn builder() -> BranchDiffSourceCodeTypeBuilder
Creates a new builder-style object to manufacture BranchDiffSourceCodeType
.
Trait Implementations§
source§impl Clone for BranchDiffSourceCodeType
impl Clone for BranchDiffSourceCodeType
source§fn clone(&self) -> BranchDiffSourceCodeType
fn clone(&self) -> BranchDiffSourceCodeType
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 Debug for BranchDiffSourceCodeType
impl Debug for BranchDiffSourceCodeType
source§impl PartialEq for BranchDiffSourceCodeType
impl PartialEq for BranchDiffSourceCodeType
source§fn eq(&self, other: &BranchDiffSourceCodeType) -> bool
fn eq(&self, other: &BranchDiffSourceCodeType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for BranchDiffSourceCodeType
Auto Trait Implementations§
impl RefUnwindSafe for BranchDiffSourceCodeType
impl Send for BranchDiffSourceCodeType
impl Sync for BranchDiffSourceCodeType
impl Unpin for BranchDiffSourceCodeType
impl UnwindSafe for BranchDiffSourceCodeType
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
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>
Creates a shared type from an unshared type.