mirror of
https://github.com/OMGeeky/confique.git
synced 2025-12-26 16:07:44 +01:00
Add array default value to formatting test example 1
This commit is contained in:
@@ -46,6 +46,10 @@ pub struct Headers {
|
||||
/// The header in which the reverse proxy specifies the display name.
|
||||
#[config(default = "x-display-name")]
|
||||
pub display_name: String,
|
||||
|
||||
/// Headers that are allowed.
|
||||
#[config(default = ["content-type", "content-encoding"])]
|
||||
pub allowed: Vec<String>,
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -30,6 +30,11 @@
|
||||
//
|
||||
// Default value: "x-display-name"
|
||||
//display_name: "x-display-name",
|
||||
|
||||
// Headers that are allowed.
|
||||
//
|
||||
// Default value: ["content-type","content-encoding"]
|
||||
//allowed: ["content-type","content-encoding"],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
# Default value: "x-display-name"
|
||||
#display_name = "x-display-name"
|
||||
|
||||
# Headers that are allowed.
|
||||
#
|
||||
# Default value: ["content-type", "content-encoding"]
|
||||
#allowed = ["content-type", "content-encoding"]
|
||||
|
||||
# Configuring the logging.
|
||||
[log]
|
||||
# If set to `true`, the app will log to stdout.
|
||||
|
||||
@@ -31,6 +31,11 @@ http:
|
||||
# Default value: x-display-name
|
||||
#display_name: x-display-name
|
||||
|
||||
# Headers that are allowed.
|
||||
#
|
||||
# Default value: [content-type, content-encoding]
|
||||
#allowed: [content-type, content-encoding]
|
||||
|
||||
# Configuring the logging.
|
||||
log:
|
||||
# If set to `true`, the app will log to stdout.
|
||||
|
||||
@@ -31,6 +31,11 @@
|
||||
# Default value: "x-display-name"
|
||||
#display_name = "x-display-name"
|
||||
|
||||
# Headers that are allowed.
|
||||
#
|
||||
# Default value: ["content-type", "content-encoding"]
|
||||
#allowed = ["content-type", "content-encoding"]
|
||||
|
||||
# Configuring the logging.
|
||||
[log]
|
||||
# If set to `true`, the app will log to stdout.
|
||||
|
||||
@@ -33,6 +33,11 @@
|
||||
# Default value: "x-display-name"
|
||||
#display_name = "x-display-name"
|
||||
|
||||
# Headers that are allowed.
|
||||
#
|
||||
# Default value: ["content-type", "content-encoding"]
|
||||
#allowed = ["content-type", "content-encoding"]
|
||||
|
||||
|
||||
# Configuring the logging.
|
||||
[log]
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
headers: {
|
||||
//username: "x-username",
|
||||
//display_name: "x-display-name",
|
||||
//allowed: ["content-type","content-encoding"],
|
||||
},
|
||||
},
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
[http.headers]
|
||||
#username = "x-username"
|
||||
#display_name = "x-display-name"
|
||||
#allowed = ["content-type", "content-encoding"]
|
||||
|
||||
[log]
|
||||
#stdout = true
|
||||
|
||||
@@ -7,6 +7,7 @@ http:
|
||||
headers:
|
||||
#username: x-username
|
||||
#display_name: x-display-name
|
||||
#allowed: [content-type, content-encoding]
|
||||
|
||||
log:
|
||||
#stdout: true
|
||||
|
||||
Reference in New Issue
Block a user