pub struct ServerConfig {
pub bind: SocketAddr,
pub data_dir: PathBuf,
pub max_dump_bytes: u64,
pub token_store: TokenStore,
pub rate_limit: RateLimitConfig,
pub retention: RetentionConfig,
pub schema_registry: SchemaRegistry,
}Expand description
Server configuration and serving entry points. Runtime configuration for an embedded Detritus server.
Fields§
§bind: SocketAddrSocket address to bind when using serve.
data_dir: PathBufRoot directory for logs, crash blobs, indexes, and temporary files.
max_dump_bytes: u64Maximum accepted crash dump or attachment size in bytes.
token_store: TokenStoreBearer-token store used by HTTP and gRPC authentication.
rate_limit: RateLimitConfigPer-source and per-token rate limit configuration.
retention: RetentionConfigRetention policy for logs, crash indexes, and unreferenced blobs.
schema_registry: SchemaRegistryTenant JSON Schema registry; use SchemaRegistry::empty to disable
schema validation for all tenants.
Trait Implementations§
Source§impl Clone for ServerConfig
impl Clone for ServerConfig
Source§fn clone(&self) -> ServerConfig
fn clone(&self) -> ServerConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ServerConfig
impl !RefUnwindSafe for ServerConfig
impl Send for ServerConfig
impl Sync for ServerConfig
impl Unpin for ServerConfig
impl UnsafeUnpin for ServerConfig
impl !UnwindSafe for ServerConfig
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<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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request