pub struct ConfigBuilder(/* private fields */);Expand description
IotDB Config Builder
Implementations§
Source§impl ConfigBuilder
impl ConfigBuilder
pub fn new() -> Self
pub fn host_port(&mut self, host: &str, port: &str) -> &mut Self
pub fn endpoint(&mut self, endpoint: &str) -> &mut Self
pub fn user(&mut self, user: &str) -> &mut Self
pub fn password(&mut self, password: &str) -> &mut Self
pub fn timeout(&mut self, timeout: i64) -> &mut Self
pub fn time_zone(&mut self, time_zone: &str) -> &mut Self
pub fn fetch_size(&mut self, fetch_size: i32) -> &mut Self
pub fn enable_rpc_compaction(&mut self) -> &mut Self
pub fn set_protocol_version( &mut self, protocol_version: TSProtocolVersion, ) -> &mut Self
pub fn enable_redirect_query( &mut self, enable_redirect_query: bool, ) -> &mut Self
pub fn set_config(&mut self, key: &str, value: &str) -> &mut Self
pub fn set_config_map( &mut self, map: &mut BTreeMap<String, String>, ) -> &mut Self
pub fn build(&self) -> 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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more