[][src]Struct kanidm::config::Configuration

pub struct Configuration {
    pub address: String,
    pub threads: usize,
    pub db_path: String,
    pub maximum_request: usize,
    pub secure_cookies: bool,
    pub tls_config: Option<TlsConfiguration>,
    pub cookie_key: [u8; 32],
    pub integration_test_config: Option<Box<IntegrationTestConfig>>,
}

Fields

address: Stringthreads: usizedb_path: Stringmaximum_request: usizesecure_cookies: booltls_config: Option<TlsConfiguration>cookie_key: [u8; 32]integration_test_config: Option<Box<IntegrationTestConfig>>

Methods

impl Configuration[src]

pub fn new() -> Self[src]

pub fn update_db_path(&mut self, p: &PathBuf)[src]

pub fn update_bind(&mut self, b: &Option<String>)[src]

pub fn update_tls(
    &mut self,
    ca: &Option<PathBuf>,
    cert: &Option<PathBuf>,
    key: &Option<PathBuf>
)
[src]

Trait Implementations

impl Debug for Configuration[src]

impl Default for Configuration[src]

impl<'de> Deserialize<'de> for Configuration[src]

impl Display for Configuration[src]

impl Serialize for Configuration[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.