pub struct GraphConfig {
pub preserve_deleted: bool,
pub max_vertices: Option<usize>,
pub max_edges: Option<usize>,
pub allow_self_loops: bool,
pub allow_multiple_edges: bool,
}Expand description
Configuration for graph CRDTs
Fields§
§preserve_deleted: boolWhether to preserve deleted vertices and edges in metadata
max_vertices: Option<usize>Maximum number of vertices
max_edges: Option<usize>Maximum number of edges
allow_self_loops: boolWhether to allow self-loops
allow_multiple_edges: boolWhether to allow multiple edges between the same vertices
Trait Implementations§
Source§impl Clone for GraphConfig
impl Clone for GraphConfig
Source§fn clone(&self) -> GraphConfig
fn clone(&self) -> GraphConfig
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 GraphConfig
impl Debug for GraphConfig
Source§impl Default for GraphConfig
impl Default for GraphConfig
Source§impl<'de> Deserialize<'de> for GraphConfig
impl<'de> Deserialize<'de> for GraphConfig
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 GraphConfig
impl PartialEq for GraphConfig
Source§impl Serialize for GraphConfig
impl Serialize for GraphConfig
impl Eq for GraphConfig
impl StructuralPartialEq for GraphConfig
Auto Trait Implementations§
impl Freeze for GraphConfig
impl RefUnwindSafe for GraphConfig
impl Send for GraphConfig
impl Sync for GraphConfig
impl Unpin for GraphConfig
impl UnwindSafe for GraphConfig
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