[][src]Struct neo4rs::ConfigBuilder

pub struct ConfigBuilder { /* fields omitted */ }

A builder to override default configurations and build the Config

Implementations

impl ConfigBuilder[src]

pub fn uri(mut self: Self, uri: &str) -> Self[src]

the uri of the neo4j server

pub fn user(mut self: Self, user: &str) -> Self[src]

username for authentication

pub fn password(mut self: Self, password: &str) -> Self[src]

password for authentication

pub fn db(mut self: Self, db: &str) -> Self[src]

the name of the database, defaults to "neo4j" if not configured.

pub fn fetch_size(mut self: Self, fetch_size: usize) -> Self[src]

fetch_size indicates the number of rows to fetch from server in one request, it is recommended to use a large fetch_size if you are working with large data sets. default fetch_size is 200

pub fn max_connections(mut self: Self, max_connections: usize) -> Self[src]

maximum number of connections in the connection pool

pub fn build(self) -> Result<Config>[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> From<T> for T[src]

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

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.