pub struct ServiceConfig {
pub grpc_port: u16,
pub http_port: u16,
pub nats_enabled: bool,
pub nats_url: String,
pub trigger_subject: String,
pub publish_prefix: String,
pub postgres_url: Option<String>,
pub ceremony_store_path: Option<String>,
pub grpc_tls: GrpcTlsConfig,
}Expand description
Minimal configuration surface the core needs to reason about the service. Adapter implementations (env vars, Figment, Kubernetes downward API, …) map to this shape.
Fields§
§grpc_port: u16§http_port: u16§nats_enabled: bool§nats_url: String§trigger_subject: String§publish_prefix: String§postgres_url: Option<String>When set, deliberations persist to Postgres; otherwise the in-memory repository is wired. Empty-string is treated as unset so the chart can carry a placeholder default.
ceremony_store_path: Option<String>When set, ceremony state, its audit journal and its outbox persist to an embedded store at this path; otherwise they are held in memory.
Unset is a deliberate choice, not a default that happens to be safe: step leases, idempotency keys and pending human guards exist to survive failure, and in memory they survive nothing. A server left volatile says so at startup.
grpc_tls: GrpcTlsConfigTransport security for the gRPC server.
Trait Implementations§
Source§impl Clone for ServiceConfig
impl Clone for ServiceConfig
Source§fn clone(&self) -> ServiceConfig
fn clone(&self) -> ServiceConfig
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 moreSource§impl Debug for ServiceConfig
impl Debug for ServiceConfig
Source§impl<'de> Deserialize<'de> for ServiceConfig
impl<'de> Deserialize<'de> for ServiceConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ServiceConfig
Source§impl PartialEq for ServiceConfig
impl PartialEq for ServiceConfig
Source§impl Serialize for ServiceConfig
impl Serialize for ServiceConfig
impl StructuralPartialEq for ServiceConfig
Auto Trait Implementations§
impl Freeze for ServiceConfig
impl RefUnwindSafe for ServiceConfig
impl Send for ServiceConfig
impl Sync for ServiceConfig
impl Unpin for ServiceConfig
impl UnsafeUnpin for ServiceConfig
impl UnwindSafe for ServiceConfig
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