pub struct Config {Show 15 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,
pub storage: Storage,
pub export: Export,
}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.
storage: StorageWhere the data is kept.
export: ExportHow export parquet reaches a bucket: the [export] table.
Trait Implementations§
impl Eq for Config
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Forget for Config
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more