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 Debug for GraphOptions[src]

impl<'de> Deserialize<'de> for GraphOptions[src]

impl Serialize for GraphOptions[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.