Struct aws_sdk_codecommit::types::ReplaceContentEntry
source · #[non_exhaustive]pub struct ReplaceContentEntry {
pub file_path: Option<String>,
pub replacement_type: Option<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: Option<String>The path of the conflicting file.
replacement_type: Option<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) -> Option<&ReplacementTypeEnum>
pub fn replacement_type(&self) -> Option<&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<ReplaceContentEntry> for ReplaceContentEntry
impl PartialEq<ReplaceContentEntry> 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