mirror of
https://github.com/amigan/rustypaste-pretty.git
synced 2024-11-22 04:19:47 -05:00
feat(config): allow omitting MIME settings from the config
This commit is contained in:
parent
87d2423d1a
commit
48063d736a
1 changed files with 2 additions and 0 deletions
|
@ -51,8 +51,10 @@ pub struct PasteConfig {
|
||||||
/// Default file extension.
|
/// Default file extension.
|
||||||
pub default_extension: String,
|
pub default_extension: String,
|
||||||
/// Media type override options.
|
/// Media type override options.
|
||||||
|
#[serde(default)]
|
||||||
pub mime_override: Vec<MimeMatcher>,
|
pub mime_override: Vec<MimeMatcher>,
|
||||||
/// Media type blacklist.
|
/// Media type blacklist.
|
||||||
|
#[serde(default)]
|
||||||
pub mime_blacklist: Vec<String>,
|
pub mime_blacklist: Vec<String>,
|
||||||
/// Allow duplicate uploads
|
/// Allow duplicate uploads
|
||||||
pub duplicate_files: Option<bool>,
|
pub duplicate_files: Option<bool>,
|
||||||
|
|
Loading…
Reference in a new issue