Struct tuf::ConfigBuilder
[−]
[src]
pub struct ConfigBuilder { /* fields omitted */ }
Helper that constructs Config
s and verifies the options.
Methods
impl ConfigBuilder
[src]
fn new() -> Self
Create a new builder with the default configurations where applicable.
fn url(self, url: Url) -> Self
The remote URL of the TUF repo.
fn local_path(self, local_path: PathBuf) -> Self
The local path for metadata and target storage.
fn http_client(self, client: Client) -> Self
The hyper::client::Client
to use. Default: Client::new()
.
fn finish(self) -> Result<Config, Error>
Verify the configuration.