pub struct Config {Show 13 fields
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>,
pub mcp: Limits,
}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: SocketAddrThe address and port serve listens on (listen).
tls_cert: PathBufThe file holding the server’s PEM certificate chain (tls.cert).
tls_key: PathBufThe file holding the server’s PEM private key (tls.key).
data_dir: PathBufThe data directory (data_dir).
master_key: PathBufThe file holding the 32-byte master key (master_key).
retention_default: RetentionFor tenants that set none; 7 years unless configured.
purge_interval: DurationTime between purge sweeps; PURGE_INTERVAL unless configured.
rotation_warn: DurationAge of the oldest work waiting for key rotation before serve
warns; ROTATION_WARN unless configured.
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.
mcp: LimitsThe MCP server’s limits.
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
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
key and return true if they are equal.