openstack_keystone_core/config/default.rs
1// Licensed under the Apache License, Version 2.0 (the "License");
2// you may not use this file except in compliance with the License.
3// You may obtain a copy of the License at
4//
5// http://www.apache.org/licenses/LICENSE-2.0
6//
7// Unless required by applicable law or agreed to in writing, software
8// distributed under the License is distributed on an "AS IS" BASIS,
9// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
10// See the License for the specific language governing permissions and
11// limitations under the License.
12//
13// SPDX-License-Identifier: Apache-2.0
14use serde::Deserialize;
15use std::path::PathBuf;
16use url::Url;
17
18/// Default configuration section.
19#[derive(Debug, Default, Deserialize, Clone)]
20pub struct DefaultSection {
21 /// If set to true, the logging level for the file will be set to DEBUG
22 /// instead of the default INFO level.
23 #[serde(default)]
24 pub debug: bool,
25
26 // Directory to be used for writing log files.
27 pub log_dir: Option<PathBuf>,
28
29 /// Public endpoint.
30 pub public_endpoint: Option<Url>,
31
32 /// Log output to standard error.
33 #[serde(default)]
34 pub use_stderr: bool,
35}