pub struct FileConfig {Show 13 fields
pub identity: Option<IdentityConfig>,
pub network: Option<NetworkConfig>,
pub blockchain: Option<BlockchainConfig>,
pub cache: Option<CacheConfig>,
pub payment: Option<PaymentConfig>,
pub observability: Option<ObservabilityConfig>,
pub security: Option<SecurityConfig>,
pub load_shed: Option<LoadShedConfig>,
pub dht: Option<DhtConfig>,
pub probe: Option<ProbeConfig>,
pub receipts: Option<ReceiptsConfig>,
pub content: Option<ContentConfig>,
pub client: Option<ClientConfig>,
}Expand description
Top-level TOML configuration file structure.
Fields§
§identity: Option<IdentityConfig>Identity settings.
network: Option<NetworkConfig>Network settings.
blockchain: Option<BlockchainConfig>Blockchain settings.
cache: Option<CacheConfig>Cache settings.
payment: Option<PaymentConfig>Payment settings.
observability: Option<ObservabilityConfig>Observability settings.
security: Option<SecurityConfig>Connection rate-limiting settings.
load_shed: Option<LoadShedConfig>Node-local load-shedding thresholds (overload protection). Absent => the resolved defaults.
dht: Option<DhtConfig>cdn/dht/v1 Kademlia DHT settings (ADR 022). Absent => defaults
from the ADR 022 §DHT Rate Limiting table.
probe: Option<ProbeConfig>cdn/probe/v1 settings (ADR 005). Absent => defaults from the
ADR 005 §Probe rate limiting table.
receipts: Option<ReceiptsConfig>Download-receipt audit-log retention settings (#802). Absent => defaults (128 MiB per file, 4 retained backups).
content: Option<ContentConfig>Local content denylist (ADR 011 §Local Denylist). Absent => both lists empty; nothing is denied locally.
client: Option<ClientConfig>Client-scoped discovery settings. Absent => no region filter; discovery/probing considers every registered node.
Trait Implementations§
Source§impl Debug for FileConfig
impl Debug for FileConfig
Source§impl Default for FileConfig
impl Default for FileConfig
Source§impl<'de> Deserialize<'de> for FileConfig
impl<'de> Deserialize<'de> for FileConfig
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>,
Auto Trait Implementations§
impl Freeze for FileConfig
impl RefUnwindSafe for FileConfig
impl Send for FileConfig
impl Sync for FileConfig
impl Unpin for FileConfig
impl UnsafeUnpin for FileConfig
impl UnwindSafe for FileConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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 more