Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Arti
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jill
Arti
Commits
56bd15b6
Commit
56bd15b6
authored
3 years ago
by
Ian Jackson
Browse files
Options
Downloads
Patches
Plain Diff
Derive Deserialize for handwritten ArtiConfigBuilder
parent
5203311a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
crates/arti-config/src/options.rs
+16
-1
16 additions, 1 deletion
crates/arti-config/src/options.rs
with
16 additions
and
1 deletion
crates/arti-config/src/options.rs
+
16
−
1
View file @
56bd15b6
...
...
@@ -359,33 +359,48 @@ impl ArtiConfig {
///
/// Unlike other builder types in Arti, this builder works by exposing an
/// inner builder for each section in the [`TorClientConfig`].
#[derive(Default,
Clone)]
#[derive(Default,
Clone,
Deserialize)]
// This ought to be replaced by a derive-builder generated struct (probably as part of #374),
// but currently derive-builder can't do this.
pub
struct
ArtiConfigBuilder
{
/// Builder for the application section
#[serde(default)]
application
:
ApplicationConfigBuilder
,
/// Builder for the proxy section.
#[serde(default)]
proxy
:
ProxyConfigBuilder
,
/// Builder for the logging section.
#[serde(default)]
logging
:
LoggingConfigBuilder
,
/// Builder for the storage section.
#[serde(default)]
storage
:
StorageConfigBuilder
,
/// Builder for the tor_network section.
#[serde(default)]
tor_network
:
dir
::
NetworkConfigBuilder
,
/// Builder for the download_schedule section.
#[serde(default)]
download_schedule
:
dir
::
DownloadScheduleConfigBuilder
,
/// In-progress object for the override_net_params section.
#[serde(default)]
override_net_params
:
HashMap
<
String
,
i32
>
,
/// Builder for the path_rules section.
#[serde(default)]
path_rules
:
circ
::
PathConfigBuilder
,
/// Builder for the preemptive_circuits section.
#[serde(default)]
preemptive_circuits
:
circ
::
PreemptiveCircuitConfigBuilder
,
/// Builder for the circuit_timing section.
#[serde(default)]
circuit_timing
:
circ
::
CircuitTimingBuilder
,
/// Builder for the address_filter section.
#[serde(default)]
address_filter
:
ClientAddrConfigBuilder
,
/// Builder for the stream timeout rules.
#[serde(default)]
stream_timeouts
:
StreamTimeoutConfigBuilder
,
/// Builder for system resource configuration.
#[serde(default)]
system
:
SystemConfigBuilder
,
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment