pub struct ConflictResolutionRecord {
pub strategy: ResolutionStrategy,
pub winner: Option<String>,
pub merged_result_id: Option<Uuid>,
pub reason: String,
pub resolved_by: Option<AgentId>,
}Expand description
Record of how a conflict was resolved.
Fields§
§strategy: ResolutionStrategy§winner: Option<String>§merged_result_id: Option<Uuid>§reason: String§resolved_by: Option<AgentId>Implementations§
Source§impl ConflictResolutionRecord
impl ConflictResolutionRecord
Sourcepub fn automatic(strategy: ResolutionStrategy, reason: &str) -> Self
pub fn automatic(strategy: ResolutionStrategy, reason: &str) -> Self
Create an automatic resolution.
Sourcepub fn manual(
strategy: ResolutionStrategy,
reason: &str,
resolved_by: AgentId,
) -> Self
pub fn manual( strategy: ResolutionStrategy, reason: &str, resolved_by: AgentId, ) -> Self
Create a manual resolution.
Trait Implementations§
Source§impl Clone for ConflictResolutionRecord
impl Clone for ConflictResolutionRecord
Source§fn clone(&self) -> ConflictResolutionRecord
fn clone(&self) -> ConflictResolutionRecord
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 moreSource§impl ComposeSchema for ConflictResolutionRecord
impl ComposeSchema for ConflictResolutionRecord
Source§impl Debug for ConflictResolutionRecord
impl Debug for ConflictResolutionRecord
Source§impl<'de> Deserialize<'de> for ConflictResolutionRecord
impl<'de> Deserialize<'de> for ConflictResolutionRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ConflictResolutionRecord
impl PartialEq for ConflictResolutionRecord
Source§impl Serialize for ConflictResolutionRecord
impl Serialize for ConflictResolutionRecord
Source§impl ToSchema for ConflictResolutionRecord
impl ToSchema for ConflictResolutionRecord
impl StructuralPartialEq for ConflictResolutionRecord
Auto Trait Implementations§
impl Freeze for ConflictResolutionRecord
impl RefUnwindSafe for ConflictResolutionRecord
impl Send for ConflictResolutionRecord
impl Sync for ConflictResolutionRecord
impl Unpin for ConflictResolutionRecord
impl UnwindSafe for ConflictResolutionRecord
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