pub struct Config {
pub url: String,
pub bind_dn: Option<String>,
pub bind_password: Option<String>,
pub pool: Option<PoolConfig>,
}Fields§
§url: Stringldap url
bind_dn: Option<String>bind_dn
bind_password: Option<String>bind_password
pool: Option<PoolConfig>Pool configuration.
Implementations§
Source§impl Config
impl Config
pub fn create_pool(&self, runtime: Runtime) -> Result<Pool, CreatePoolError>
pub fn builder(&self, runtime: Runtime) -> Result<PoolBuilder, LdapConfigError>
Trait Implementations§
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