pub struct Configuration {Show 20 fields
pub address: String,
pub ldapaddress: Option<String>,
pub adminbindpath: String,
pub threads: usize,
pub db_path: String,
pub db_fs_type: Option<FsType>,
pub db_arc_size: Option<usize>,
pub maximum_request: usize,
pub trust_x_forward_for: bool,
pub tls_config: Option<TlsConfiguration>,
pub integration_test_config: Option<Box<IntegrationTestConfig>>,
pub online_backup: Option<OnlineBackup>,
pub domain: String,
pub origin: String,
pub role: ServerRole,
pub output_mode: ConsoleOutputMode,
pub log_level: LogLevel,
pub repl_config: Option<ReplicationConfiguration>,
pub integration_repl_config: Option<Box<IntegrationReplConfig>>,
pub otel_grpc_url: Option<String>,
}
Expand description
The internal configuration of the server. User-facing configuration is in ServerConfig, as the configuration file is parsed by that object.
Fields§
§address: String
§ldapaddress: Option<String>
§adminbindpath: String
§threads: usize
§db_path: String
§db_fs_type: Option<FsType>
§db_arc_size: Option<usize>
§maximum_request: usize
§trust_x_forward_for: bool
§tls_config: Option<TlsConfiguration>
§integration_test_config: Option<Box<IntegrationTestConfig>>
§online_backup: Option<OnlineBackup>
§domain: String
§origin: String
§role: ServerRole
§output_mode: ConsoleOutputMode
§log_level: LogLevel
§repl_config: Option<ReplicationConfiguration>
Replication settings.
integration_repl_config: Option<Box<IntegrationReplConfig>>
This allows internally setting some unsafe options for replication.
otel_grpc_url: Option<String>
Implementations§
source§impl Configuration
impl Configuration
pub fn new() -> Self
pub fn new_for_test() -> Self
pub fn update_online_backup(&mut self, cfg: &Option<OnlineBackup>)
pub fn update_log_level(&mut self, level: &Option<LogLevel>)
pub fn update_config_for_server_mode(&mut self, sconfig: &ServerConfig)
pub fn update_trust_x_forward_for(&mut self, t: Option<bool>)
pub fn update_db_path(&mut self, p: &str)
pub fn update_db_arc_size(&mut self, v: Option<usize>)
pub fn update_db_fs_type(&mut self, p: &Option<FsType>)
pub fn update_bind(&mut self, b: &Option<String>)
pub fn update_ldapbind(&mut self, l: &Option<String>)
pub fn update_admin_bind_path(&mut self, p: &Option<String>)
pub fn update_origin(&mut self, o: &str)
pub fn update_domain(&mut self, d: &str)
pub fn update_role(&mut self, r: ServerRole)
sourcepub fn update_output_mode(&mut self, om: ConsoleOutputMode)
pub fn update_output_mode(&mut self, om: ConsoleOutputMode)
Sets the output mode for writing to the console
pub fn update_replication_config( &mut self, repl_config: Option<ReplicationConfiguration>, )
pub fn update_tls( &mut self, chain: &Option<String>, key: &Option<String>, client_ca: &Option<String>, )
pub fn update_threads_count(&mut self, threads: usize)
Trait Implementations§
source§impl Clone for Configuration
impl Clone for Configuration
source§fn clone(&self) -> Configuration
fn clone(&self) -> Configuration
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for Configuration
impl Debug for Configuration
source§impl Default for Configuration
impl Default for Configuration
Auto Trait Implementations§
impl Freeze for Configuration
impl RefUnwindSafe for Configuration
impl Send for Configuration
impl Sync for Configuration
impl Unpin for Configuration
impl UnwindSafe for Configuration
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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 moresource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request