pub struct RdapifyConfig {
pub rdap: RdapConfig,
pub cache: CacheConfig,
pub sqlite: SqliteConfig,
pub monitoring: MonitoringConfig,
pub webhooks: WebhookConfig,
pub license: LicenseConfig,
pub logging: LoggingConfig,
pub metrics: MetricsConfig,
pub server: ServerConfig,
}Expand description
Complete RDAPify configuration.
All sections have safe defaults so RDAPify runs without any config file.
§Minimal example
[cache]
type = "memory"
[logging]
level = "info"Everything else uses defaults.
Fields§
§rdap: RdapConfigRDAP HTTP client settings.
cache: CacheConfigResponse cache settings.
sqlite: SqliteConfigSQLite storage settings.
monitoring: MonitoringConfigBackground monitoring settings (Pro).
webhooks: WebhookConfigWebhook delivery settings (Pro).
license: LicenseConfigLicense validation settings (Pro).
logging: LoggingConfigStructured logging settings.
metrics: MetricsConfigMetrics endpoint settings.
server: ServerConfigHTTP service binding settings (service mode).
Trait Implementations§
Source§impl Clone for RdapifyConfig
impl Clone for RdapifyConfig
Source§fn clone(&self) -> RdapifyConfig
fn clone(&self) -> RdapifyConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 RdapifyConfig
impl Debug for RdapifyConfig
Source§impl Default for RdapifyConfig
impl Default for RdapifyConfig
Source§fn default() -> RdapifyConfig
fn default() -> RdapifyConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RdapifyConfigwhere
RdapifyConfig: Default,
impl<'de> Deserialize<'de> for RdapifyConfigwhere
RdapifyConfig: Default,
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
Auto Trait Implementations§
impl Freeze for RdapifyConfig
impl RefUnwindSafe for RdapifyConfig
impl Send for RdapifyConfig
impl Sync for RdapifyConfig
impl Unpin for RdapifyConfig
impl UnsafeUnpin for RdapifyConfig
impl UnwindSafe for RdapifyConfig
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