aboutsummaryrefslogtreecommitdiffstats
path: root/rust/src/api_entity_crud.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:37:16 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-09-10 18:38:12 -0700
commitbf769e17ccdb788cb6127c26fb7f0e60e1fd0a9e (patch)
tree70b7bd2cd4569a7592709c641512d245873e58be /rust/src/api_entity_crud.rs
parentd57a807ee0481fd6534307f0870a0f96ea19cd25 (diff)
downloadfatcat-bf769e17ccdb788cb6127c26fb7f0e60e1fd0a9e.tar.gz
fatcat-bf769e17ccdb788cb6127c26fb7f0e60e1fd0a9e.zip
continue CRUD refactor, removing CUD handlers
Can't remove the "get" handlers because of the expand parameter, which is only implemented for releases and in the handler (not in the CRUD trait, yet). Also didn't do the batch handler stuff yet.
Diffstat (limited to 'rust/src/api_entity_crud.rs')
-rw-r--r--rust/src/api_entity_crud.rs8
1 files changed, 0 insertions, 8 deletions
diff --git a/rust/src/api_entity_crud.rs b/rust/src/api_entity_crud.rs
index e59b47b8..a1f4742b 100644
--- a/rust/src/api_entity_crud.rs
+++ b/rust/src/api_entity_crud.rs
@@ -6,19 +6,11 @@ use diesel::prelude::*;
use diesel::{self, insert_into};
use errors::*;
use fatcat_api::models::*;
-use serde_json;
use sha1::Sha1;
use std::marker::Sized;
use std::str::FromStr;
use uuid::Uuid;
-pub struct EditContext {
- pub editor_id: FatCatId,
- pub editgroup_id: FatCatId,
- pub extra_json: Option<serde_json::Value>,
- pub autoaccept: bool,
-}
-
/* One goal here is to abstract the non-entity-specific bits into generic traits or functions,
* instead of macros.
*