pub struct TreeConfig {
pub strategy: TreeStrategy,
pub preserve_deleted: bool,
pub max_depth: Option<usize>,
pub max_children: Option<usize>,
}Expand description
Configuration for tree CRDTs
Fields§
§strategy: TreeStrategyConflict resolution strategy
preserve_deleted: boolWhether to preserve deleted nodes in metadata
max_depth: Option<usize>Maximum depth of the tree
max_children: Option<usize>Maximum number of children per node
Trait Implementations§
Source§impl Clone for TreeConfig
impl Clone for TreeConfig
Source§fn clone(&self) -> TreeConfig
fn clone(&self) -> TreeConfig
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 TreeConfig
impl Debug for TreeConfig
Source§impl Default for TreeConfig
impl Default for TreeConfig
Source§impl<'de> Deserialize<'de> for TreeConfig
impl<'de> Deserialize<'de> for TreeConfig
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 TreeConfig
impl PartialEq for TreeConfig
Source§impl Serialize for TreeConfig
impl Serialize for TreeConfig
impl Eq for TreeConfig
impl StructuralPartialEq for TreeConfig
Auto Trait Implementations§
impl Freeze for TreeConfig
impl RefUnwindSafe for TreeConfig
impl Send for TreeConfig
impl Sync for TreeConfig
impl Unpin for TreeConfig
impl UnwindSafe for TreeConfig
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