pub struct ConfigBuilder { /* private fields */ }
Expand description
A builder to override default configurations and build the Config
.
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
Sourcepub fn uri(self, uri: impl Into<String>) -> Self
pub fn uri(self, uri: impl Into<String>) -> Self
The uri of the Neo4j server, e.g. “127.0.0.1:7687”.
Sourcepub fn user(self, user: impl Into<String>) -> Self
pub fn user(self, user: impl Into<String>) -> Self
The username for authenticating with the Neo4j server.
Sourcepub fn password(self, password: impl Into<String>) -> Self
pub fn password(self, password: impl Into<String>) -> Self
The password for authenticating with the Neo4j server.
Sourcepub fn db(self, db: impl Into<Database>) -> Self
pub fn db(self, db: impl Into<Database>) -> Self
The name of the database to connect to.
Defaults to “neo4j” if not set.
Sourcepub fn fetch_size(self, fetch_size: usize) -> Self
pub fn fetch_size(self, fetch_size: usize) -> Self
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.
Defaults to 200 if not set.
Sourcepub fn max_connections(self, max_connections: usize) -> Self
pub fn max_connections(self, max_connections: usize) -> Self
The maximum number of connections in the connection pool.
Defaults to 16 if not set.
pub fn with_client_certificate(self, client_cert: impl AsRef<Path>) -> Self
pub fn build(self) -> Result<Config>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ConfigBuilder
impl RefUnwindSafe for ConfigBuilder
impl Send for ConfigBuilder
impl Sync for ConfigBuilder
impl Unpin for ConfigBuilder
impl UnwindSafe for ConfigBuilder
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