Struct ruarango::ConnectionBuilder
source · pub struct ConnectionBuilder { /* private fields */ }
Expand description
Builder for Connection
.
Implementations§
source§impl ConnectionBuilder
impl ConnectionBuilder
sourcepub fn url<VALUE: Into<String>>(&self, value: VALUE) -> Self
pub fn url<VALUE: Into<String>>(&self, value: VALUE) -> Self
The url used to connect to ArangoDB
sourcepub fn username<VALUE: Into<String>>(&self, value: VALUE) -> Self
pub fn username<VALUE: Into<String>>(&self, value: VALUE) -> Self
An optional username, defaults to ‘root’
sourcepub fn password<VALUE: Into<String>>(&self, value: VALUE) -> Self
pub fn password<VALUE: Into<String>>(&self, value: VALUE) -> Self
An optional password, defaults to ‘’
sourcepub fn database<VALUE: Into<String>>(&self, value: VALUE) -> Self
pub fn database<VALUE: Into<String>>(&self, value: VALUE) -> Self
An optional database to use, defaults to ‘’ which will target the ‘_system’ database
sourcepub fn async_kind(&self, value: AsyncKind) -> Self
pub fn async_kind(&self, value: AsyncKind) -> Self
Make this request asynchronously
Trait Implementations§
source§impl Clone for ConnectionBuilder
impl Clone for ConnectionBuilder
source§fn clone(&self) -> ConnectionBuilder
fn clone(&self) -> ConnectionBuilder
Returns a copy 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 more