changelog shortlog graph tags branches changeset files revisions annotate raw help

Mercurial > core / rust/lib/obj/src/config/registry.rs

changeset 698: 96958d3eb5b0
parent: c7165d93a9eb
author: Richard Westhaver <ellis@rwest.io>
date: Fri, 04 Oct 2024 22:04:59 -0400
permissions: -rw-r--r--
description: fixes
1 //! cfg::config::registry
2 //!
3 //! Registry configuration primitives
4 //!
5 //! A Registry is just a list of key=val pairs wrapped in an API. The
6 //! RegistryConfig is used to bootstrap the Registry service, at which
7 //! point the client can submit commands to the service socket.
8 use super::{database::DatabaseConfig, network::NetworkConfig};
9 use serde::{Deserialize, Serialize};
10 
11 /// Registry configuration type
12 #[derive(Serialize, Deserialize, Debug, Hash, PartialEq)]
13 pub struct RegistryConfig {
14  crypto: Option<String>,
15  net: Option<NetworkConfig>,
16  db: DatabaseConfig,
17 }