Struct aws_sdk_codecommit::types::ReplaceContentEntry
source · #[non_exhaustive]pub struct ReplaceContentEntry {
pub file_path: String,
pub replacement_type: ReplacementTypeEnum,
pub content: Option<Blob>,
pub file_mode: Option<FileModeTypeEnum>,
}
Expand description
Information about a replacement content entry in the conflict of 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.file_path: String
The path of the conflicting file.
replacement_type: ReplacementTypeEnum
The replacement type to use when determining how to resolve the conflict.
content: Option<Blob>
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
file_mode: Option<FileModeTypeEnum>
The file mode to apply during conflict resoltion.
Implementations§
source§impl ReplaceContentEntry
impl ReplaceContentEntry
sourcepub fn replacement_type(&self) -> &ReplacementTypeEnum
pub fn replacement_type(&self) -> &ReplacementTypeEnum
The replacement type to use when determining how to resolve the conflict.
sourcepub fn content(&self) -> Option<&Blob>
pub fn content(&self) -> Option<&Blob>
The base-64 encoded content to use when the replacement type is USE_NEW_CONTENT.
sourcepub fn file_mode(&self) -> Option<&FileModeTypeEnum>
pub fn file_mode(&self) -> Option<&FileModeTypeEnum>
The file mode to apply during conflict resoltion.
source§impl ReplaceContentEntry
impl ReplaceContentEntry
sourcepub fn builder() -> ReplaceContentEntryBuilder
pub fn builder() -> ReplaceContentEntryBuilder
Creates a new builder-style object to manufacture ReplaceContentEntry
.
Trait Implementations§
source§impl Clone for ReplaceContentEntry
impl Clone for ReplaceContentEntry
source§fn clone(&self) -> ReplaceContentEntry
fn clone(&self) -> ReplaceContentEntry
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 ReplaceContentEntry
impl Debug for ReplaceContentEntry
source§impl PartialEq for ReplaceContentEntry
impl PartialEq for ReplaceContentEntry
source§fn eq(&self, other: &ReplaceContentEntry) -> bool
fn eq(&self, other: &ReplaceContentEntry) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ReplaceContentEntry
Auto Trait Implementations§
impl RefUnwindSafe for ReplaceContentEntry
impl Send for ReplaceContentEntry
impl Sync for ReplaceContentEntry
impl Unpin for ReplaceContentEntry
impl UnwindSafe for ReplaceContentEntry
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.