Skip to content

Commit

Permalink
0.16.2: impl Clone for Config
Browse files Browse the repository at this point in the history
  • Loading branch information
DoumanAsh committed Dec 21, 2019
1 parent f86db8a commit 047bb30
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fie"
version = "0.16.1"
version = "0.16.2"
authors = ["Douman <[email protected]>"]
repository = "https://github.com/DoumanAsh/fie"
description = "Small and cute social media utility."
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
[![Build status](https://ci.appveyor.com/api/projects/status/oc937oppd38x1y4y/branch/master?svg=true)](https://ci.appveyor.com/project/DoumanAsh/fie/branch/master)
[![Build Status](https://travis-ci.org/DoumanAsh/fie.svg?branch=master)](https://travis-ci.org/DoumanAsh/fie)
[![Crates.io](https://img.shields.io/crates/v/fie.svg)](https://crates.io/crates/fie)
[![Dependency status](https://deps.rs/crate/fie/0.16.1/status.svg)](https://deps.rs/crate/fie)
[![Dependency status](https://deps.rs/crate/fie/0.16.2/status.svg)](https://deps.rs/crate/fie)

Small and cute social media CLI.

Expand Down
14 changes: 7 additions & 7 deletions src/lib/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,15 +37,15 @@ impl Default for Platforms {
}

///Pair of key and secret
#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Token {
///Key
pub key: String,
///Secret
pub secret: String,
}
/// Twitter configuration
#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Twitter {
#[serde(default)]
///Consumer tokens, belongs to app.
Expand All @@ -56,7 +56,7 @@ pub struct Twitter {
}

/// Gab configuration.
#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Gab {
///API's access token.
///
Expand All @@ -66,7 +66,7 @@ pub struct Gab {
}

/// Mastodon configuration.
#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Mastodon {
///Hostname to connect
#[serde(default)]
Expand All @@ -79,7 +79,7 @@ pub struct Mastodon {
}

/// Minds configuration.
#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
pub struct Minds {
///Username for authorization
#[serde(default)]
Expand Down Expand Up @@ -109,7 +109,7 @@ impl Default for Settings {
}
}

#[derive(Serialize, Deserialize, Debug, Default)]
#[derive(Serialize, Deserialize, Debug, Default, Clone)]
///Social media's API information
pub struct ApiConfig {
///Gab information
Expand All @@ -123,7 +123,7 @@ pub struct ApiConfig {
}

///Fie's configuration
#[derive(Serialize, Deserialize, Debug)]
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct Config {
///Enable/disable switches for social medias
#[serde(default)]
Expand Down

0 comments on commit 047bb30

Please sign in to comment.