Struct arangors::graph::GraphOptions [−][src]
pub struct GraphOptions { pub smart_graph_attribute: Option<String>, pub number_of_shards: Option<u32>, pub replication_factor: Option<u32>, pub write_concern: Option<u32>, }
Represents the available options for a Graph
Creation
Fields
smart_graph_attribute: Option<String>
Only has effect in Enterprise Edition and it is required if isSmart is true. The attribute name that is used to smartly shard the vertices of a graph. Every vertex in this SmartGraph has to have this attribute. Cannot be modified later.
number_of_shards: Option<u32>
The number of shards that is used for every collection within this graph. Cannot be modified later.
replication_factor: Option<u32>
The replication factor used when initially creating collections for this graph. Can be set to “satellite” to create a SatelliteGraph, which will ignore numberOfShards, minReplicationFactor and writeConcern (Enterprise Edition only).
write_concern: Option<u32>
Write concern for new collections in the graph. It determines how many copies of each shard are required to be in sync on the different DB-Servers. If there are less then these many copies in the cluster a shard will refuse to write. Writes to shards with enough up-to-date copies will succeed at the same time however. The value of writeConcern can not be larger than replicationFactor. (cluster only)
Trait Implementations
impl Clone for GraphOptions
[src]
impl Clone for GraphOptions
[src]fn clone(&self) -> GraphOptions
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'de> Deserialize<'de> for GraphOptions
[src]
impl<'de> Deserialize<'de> for GraphOptions
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Serialize for GraphOptions
[src]
impl Serialize for GraphOptions
[src]Auto Trait Implementations
impl RefUnwindSafe for GraphOptions
impl RefUnwindSafe for GraphOptions
impl Send for GraphOptions
impl Send for GraphOptions
impl Sync for GraphOptions
impl Sync for GraphOptions
impl Unpin for GraphOptions
impl Unpin for GraphOptions
impl UnwindSafe for GraphOptions
impl UnwindSafe for GraphOptions
Blanket Implementations
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]