Struct aws_sdk_codecommit::types::MergeHunkDetail
source · #[non_exhaustive]pub struct MergeHunkDetail {
pub start_line: Option<i32>,
pub end_line: Option<i32>,
pub hunk_content: Option<String>,
}
Expand description
Information about the details of a merge hunk that contains a conflict in a merge or pull request operation.
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.start_line: Option<i32>
The start position of the hunk in the merge result.
end_line: Option<i32>
The end position of the hunk in the merge result.
hunk_content: Option<String>
The base-64 encoded content of the hunk merged region that might contain a conflict.
Implementations§
source§impl MergeHunkDetail
impl MergeHunkDetail
sourcepub fn start_line(&self) -> Option<i32>
pub fn start_line(&self) -> Option<i32>
The start position of the hunk in the merge result.
sourcepub fn hunk_content(&self) -> Option<&str>
pub fn hunk_content(&self) -> Option<&str>
The base-64 encoded content of the hunk merged region that might contain a conflict.
source§impl MergeHunkDetail
impl MergeHunkDetail
sourcepub fn builder() -> MergeHunkDetailBuilder
pub fn builder() -> MergeHunkDetailBuilder
Creates a new builder-style object to manufacture MergeHunkDetail
.
Trait Implementations§
source§impl Clone for MergeHunkDetail
impl Clone for MergeHunkDetail
source§fn clone(&self) -> MergeHunkDetail
fn clone(&self) -> MergeHunkDetail
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 MergeHunkDetail
impl Debug for MergeHunkDetail
source§impl PartialEq for MergeHunkDetail
impl PartialEq for MergeHunkDetail
source§fn eq(&self, other: &MergeHunkDetail) -> bool
fn eq(&self, other: &MergeHunkDetail) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for MergeHunkDetail
Auto Trait Implementations§
impl Freeze for MergeHunkDetail
impl RefUnwindSafe for MergeHunkDetail
impl Send for MergeHunkDetail
impl Sync for MergeHunkDetail
impl Unpin for MergeHunkDetail
impl UnwindSafe for MergeHunkDetail
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>
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.