pub struct Config {
pub postgres: Config,
pub pool_max_size: usize,
pub discorery_interval: Duration,
pub ssl_cert_file: Option<String>,
pub ssl_key_file: Option<String>,
pub ssl_ca_file: Option<String>,
pub excluded_tiers: Option<Vec<String>>,
}
Expand description
Picodata config
Fields§
§postgres: Config
Config to initialize connection.
pool_max_size: usize
Max size of connection pool for one instance.
discorery_interval: Duration
Interval for making topology requests.
ssl_cert_file: Option<String>
Path to cert file.
ssl_key_file: Option<String>
Path to key file.
ssl_ca_file: Option<String>
Path to ca file.
excluded_tiers: Option<Vec<String>>
Tiers that are not used to create connections to.
Implementations§
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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