pub struct SoliDBClientBuilder { /* private fields */ }Implementations§
Source§impl SoliDBClientBuilder
impl SoliDBClientBuilder
pub fn new(addr: &str) -> Self
pub fn auth(self, database: &str, username: &str, password: &str) -> Self
pub fn auth_with_api_key(self, database: &str, api_key: &str) -> Self
pub fn timeout_ms(self, ms: u64) -> Self
pub fn pool_size(self, size: usize) -> Self
pub fn use_http(self) -> Self
pub fn use_tcp(self) -> Self
pub async fn build_http(self) -> Result<HttpClient, DriverError>
pub async fn build(self) -> Result<SoliDBClient, DriverError>
pub async fn build_with_transport(self) -> Result<SoliDBClient, DriverError>
Auto Trait Implementations§
impl Freeze for SoliDBClientBuilder
impl RefUnwindSafe for SoliDBClientBuilder
impl Send for SoliDBClientBuilder
impl Sync for SoliDBClientBuilder
impl Unpin for SoliDBClientBuilder
impl UnwindSafe for SoliDBClientBuilder
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