mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-09 11:36:40 +02:00
11 lines
No EOL
332 B
Rust
11 lines
No EOL
332 B
Rust
use std::collections::HashSet;
|
|
use serde::Deserialize;
|
|
use url::Host;
|
|
#[derive(Deserialize,Debug, Default, Clone)]
|
|
pub struct AccessControlListConfig {
|
|
/// setting this explicitly enables allowlists
|
|
pub(crate)allow_list: Option<HashSet<Host<String>>>,
|
|
|
|
#[serde(default)]
|
|
pub(crate)block_list: HashSet<Host<String>>
|
|
} |