diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:06:58 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-02-04 11:07:31 +0200 |
commit | 22202d176259d962abdbfdefef1e6213408df06c (patch) | |
tree | e36be72149099d6df45380a81c43c3c39d84fe80 /src/client.rs | |
parent | cda0e5bde3fa0c9c2cb0b4fa9f21fbb758acfbe1 (diff) | |
download | obnam2-22202d176259d962abdbfdefef1e6213408df06c.tar.gz |
feat: add obnam config subcommand
Diffstat (limited to 'src/client.rs')
-rw-r--r-- | src/client.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client.rs b/src/client.rs index f9c325c..e8e20eb 100644 --- a/src/client.rs +++ b/src/client.rs @@ -11,13 +11,13 @@ use crate::genlist::GenerationList; use chrono::{DateTime, Local}; use log::{debug, error, info, trace}; use reqwest::blocking::Client; -use serde::Deserialize; +use serde::{Deserialize, Serialize}; use std::collections::HashMap; use std::fs::File; use std::io::prelude::*; use std::path::{Path, PathBuf}; -#[derive(Debug, Deserialize, Clone)] +#[derive(Debug, Serialize, Deserialize, Clone)] pub struct ClientConfig { pub server_url: String, pub root: PathBuf, |