pub struct EntityConflict {
pub entity_name: String,
pub entity_type: String,
pub kind: ConflictKind,
pub complexity: ConflictComplexity,
pub ours_content: Option<String>,
pub theirs_content: Option<String>,
pub base_content: Option<String>,
}Expand description
A conflict on a specific entity.
Fields§
§entity_name: String§entity_type: String§kind: ConflictKind§complexity: ConflictComplexity§ours_content: Option<String>§theirs_content: Option<String>§base_content: Option<String>Implementations§
Source§impl EntityConflict
impl EntityConflict
Sourcepub fn to_conflict_markers(&self, fmt: &MarkerFormat) -> String
pub fn to_conflict_markers(&self, fmt: &MarkerFormat) -> String
Render this conflict as conflict markers.
When fmt.enhanced is true, includes entity metadata and resolution hints.
When false, outputs standard git-compatible markers.
Narrows conflict markers to only the differing lines: common prefix and suffix lines are emitted as clean text outside the markers.
Trait Implementations§
Source§impl Clone for EntityConflict
impl Clone for EntityConflict
Source§fn clone(&self) -> EntityConflict
fn clone(&self) -> EntityConflict
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for EntityConflict
impl RefUnwindSafe for EntityConflict
impl Send for EntityConflict
impl Sync for EntityConflict
impl Unpin for EntityConflict
impl UnsafeUnpin for EntityConflict
impl UnwindSafe for EntityConflict
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 more