pub struct RuntimeServerConfig {
pub server: ServerSection,
pub typedb: SecureTypeDBSection,
pub schema: SchemaSection,
pub interceptors: InterceptorsSection,
pub logging: LoggingSection,
pub inbound_tls: Option<InboundTlsSection>,
pub v2: V2Section,
}Expand description
Standalone-server configuration with additive secure and V2 settings.
ServerConfig remains the released plaintext configuration surface so
downstream exhaustive struct literals and patterns keep compiling. The
standalone binary parses this projection instead; its private wire types
accept the same TOML tables while keeping new fields out of the released
structs.
Fields§
§server: ServerSectionListener address configuration.
typedb: SecureTypeDBSectionValidated TypeDB connection and outbound TLS policy.
schema: SchemaSectionOptional V1 TypeQL schema source.
interceptors: InterceptorsSectionInterceptors enabled for the request pipeline.
logging: LoggingSectionProcess logging configuration.
inbound_tls: Option<InboundTlsSection>Prepared inbound TLS identity, when HTTPS is enabled.
v2: V2SectionGenerated-authority-backed V2 query configuration.
Implementations§
Source§impl RuntimeServerConfig
impl RuntimeServerConfig
Sourcepub fn from_file(path: &str) -> Result<Self, Box<dyn Error>>
pub fn from_file(path: &str) -> Result<Self, Box<dyn Error>>
Load the standalone runtime projection, including secure and V2 TOML.
Return the immutable V2 schema-authority bytes captured by Self::from_file.
A caller that mutates the public diagnostic path after loading must reload the complete configuration instead of pairing it with stale schema authority.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeServerConfig
impl RefUnwindSafe for RuntimeServerConfig
impl Send for RuntimeServerConfig
impl Sync for RuntimeServerConfig
impl Unpin for RuntimeServerConfig
impl UnsafeUnpin for RuntimeServerConfig
impl UnwindSafe for RuntimeServerConfig
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> 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 moreSource§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>
T in a tonic::Request