Skip to content

Commit

Permalink
made proposals model cloneable
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania committed Jul 8, 2020
1 parent 084768b commit a45c970
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions vit-servicing-station-lib/src/db/models/proposals.rs
Expand Up @@ -4,7 +4,7 @@ use crate::db::{views_schema::full_proposals_info, DB};
use diesel::Queryable;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct Category {
#[serde(alias = "categoryId")]
pub category_id: String,
Expand All @@ -14,7 +14,7 @@ pub struct Category {
pub category_description: String,
}

#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct Proposer {
#[serde(alias = "proposerName")]
pub proposer_name: String,
Expand All @@ -24,7 +24,7 @@ pub struct Proposer {
pub proposer_url: String,
}

#[derive(Serialize, Deserialize, PartialEq, Eq, Debug)]
#[derive(Serialize, Deserialize, PartialEq, Eq, Debug, Clone)]
pub struct Proposal {
#[serde(alias = "internalId")]
pub internal_id: i32,
Expand Down

0 comments on commit a45c970

Please sign in to comment.