pub struct Config {
pub listen: SocketAddr,
pub tls_cert: PathBuf,
pub tls_key: PathBuf,
pub data_dir: PathBuf,
pub master_key: PathBuf,
pub retention_default: Retention,
pub purge_interval: Duration,
pub rotation_warn: Duration,
pub body_limit: usize,
pub inflated_limit: u64,
pub read_timeout: Duration,
pub supported_critical: BTreeSet<String>,
}Expand description
The configuration serve runs with. Durations are written in whole
seconds and sizes in bytes; each must be more than zero, and each has a
default.
Fields§
§listen: SocketAddr§tls_cert: PathBuf§tls_key: PathBuf§data_dir: PathBuf§master_key: PathBuf§retention_default: RetentionFor tenants that set none; 7 years unless configured.
purge_interval: Duration§rotation_warn: Duration§body_limit: usizeThe largest request body.
inflated_limit: u64The largest size gzip inflation may reach while a body is inspected.
read_timeout: DurationHow long a request body may take to arrive.
supported_critical: BTreeSet<String>Extension names accepted in critical and must_support.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
Blanket Implementations§
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.