pub enum TreeStrategy {
AddWins,
RemoveWins,
}Expand description
Strategy for handling tree conflicts
Variants§
AddWins
Add-Wins: Nodes are never removed, only marked as deleted
RemoveWins
Remove-Wins: Deleted nodes are completely removed
Trait Implementations§
Source§impl Clone for TreeStrategy
impl Clone for TreeStrategy
Source§fn clone(&self) -> TreeStrategy
fn clone(&self) -> TreeStrategy
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 Debug for TreeStrategy
impl Debug for TreeStrategy
Source§impl<'de> Deserialize<'de> for TreeStrategy
impl<'de> Deserialize<'de> for TreeStrategy
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 TreeStrategy
impl PartialEq for TreeStrategy
Source§impl Serialize for TreeStrategy
impl Serialize for TreeStrategy
impl Eq for TreeStrategy
impl StructuralPartialEq for TreeStrategy
Auto Trait Implementations§
impl Freeze for TreeStrategy
impl RefUnwindSafe for TreeStrategy
impl Send for TreeStrategy
impl Sync for TreeStrategy
impl Unpin for TreeStrategy
impl UnwindSafe for TreeStrategy
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