ReferenceRust referencesigil-labor-api
sigil-labor-api · config
Source declarations, signatures and documentation for config.
Source: sigil/node/../labor-api/src/config.rs. SHA-256: 924443031026fc500f9b72aac34c7aaaae0627150ce270af38cf500c39fdb31e.
This reference follows declared source modules, retains conditional attributes, and includes public declarations and implementation methods. Private-module re-exports and trait resolution require the compiler; this is a source reference, not a claim that every listed item is a root import. Function bodies and constant values are omitted.
config::ServerConfig
Top-level server configuration.
#[derive(Debug, Clone, Deserialize)]
#[serde(default)]
pub struct ServerConfig {
/// Socket address to bind the HTTP listener.
pub listen_addr: SocketAddr,
/// PostgreSQL connection URL.
///
/// When absent and `LABOR_ALLOW_MEMORY_STORE=1` is not set, the server
/// refuses to start.
pub database_url: Option<String>,
/// Log level / `RUST_LOG` directive (e.g. `info`, `debug`).
pub log_level: String,
/// Sigil node JSON-RPC URL used to verify HMR/MHR/ENR principals against
/// the on-chain GAL registry.
pub identity_rpc_url: Option<String>
}Source line: 13.