From 313f6926a6608e9740924e3ff4fe6dfea2016397 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 20 Jul 2018 20:00:16 -0700 Subject: update fatcat-api lib with schema changes --- rust/fatcat-api/src/lib.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'rust/fatcat-api/src/lib.rs') diff --git a/rust/fatcat-api/src/lib.rs b/rust/fatcat-api/src/lib.rs index ce5674cd..47d23d04 100644 --- a/rust/fatcat-api/src/lib.rs +++ b/rust/fatcat-api/src/lib.rs @@ -438,7 +438,7 @@ pub enum LookupReleaseResponse { /// API pub trait Api { - fn accept_editgroup(&self, id: i64, context: &Context) -> Box + Send>; + fn accept_editgroup(&self, id: String, context: &Context) -> Box + Send>; fn create_container(&self, entity: models::ContainerEntity, context: &Context) -> Box + Send>; @@ -476,11 +476,11 @@ pub trait Api { fn get_creator_releases(&self, id: String, context: &Context) -> Box + Send>; - fn get_editgroup(&self, id: i64, context: &Context) -> Box + Send>; + fn get_editgroup(&self, id: String, context: &Context) -> Box + Send>; - fn get_editor(&self, username: String, context: &Context) -> Box + Send>; + fn get_editor(&self, id: String, context: &Context) -> Box + Send>; - fn get_editor_changelog(&self, username: String, context: &Context) -> Box + Send>; + fn get_editor_changelog(&self, id: String, context: &Context) -> Box + Send>; fn get_file(&self, id: String, context: &Context) -> Box + Send>; @@ -511,7 +511,7 @@ pub trait Api { /// API without a `Context` pub trait ApiNoContext { - fn accept_editgroup(&self, id: i64) -> Box + Send>; + fn accept_editgroup(&self, id: String) -> Box + Send>; fn create_container(&self, entity: models::ContainerEntity) -> Box + Send>; @@ -549,11 +549,11 @@ pub trait ApiNoContext { fn get_creator_releases(&self, id: String) -> Box + Send>; - fn get_editgroup(&self, id: i64) -> Box + Send>; + fn get_editgroup(&self, id: String) -> Box + Send>; - fn get_editor(&self, username: String) -> Box + Send>; + fn get_editor(&self, id: String) -> Box + Send>; - fn get_editor_changelog(&self, username: String) -> Box + Send>; + fn get_editor_changelog(&self, id: String) -> Box + Send>; fn get_file(&self, id: String) -> Box + Send>; @@ -598,7 +598,7 @@ impl<'a, T: Api + Sized> ContextWrapperExt<'a> for T { } impl<'a, T: Api> ApiNoContext for ContextWrapper<'a, T> { - fn accept_editgroup(&self, id: i64) -> Box + Send> { + fn accept_editgroup(&self, id: String) -> Box + Send> { self.api().accept_editgroup(id, &self.context()) } @@ -674,16 +674,16 @@ impl<'a, T: Api> ApiNoContext for ContextWrapper<'a, T> { self.api().get_creator_releases(id, &self.context()) } - fn get_editgroup(&self, id: i64) -> Box + Send> { + fn get_editgroup(&self, id: String) -> Box + Send> { self.api().get_editgroup(id, &self.context()) } - fn get_editor(&self, username: String) -> Box + Send> { - self.api().get_editor(username, &self.context()) + fn get_editor(&self, id: String) -> Box + Send> { + self.api().get_editor(id, &self.context()) } - fn get_editor_changelog(&self, username: String) -> Box + Send> { - self.api().get_editor_changelog(username, &self.context()) + fn get_editor_changelog(&self, id: String) -> Box + Send> { + self.api().get_editor_changelog(id, &self.context()) } fn get_file(&self, id: String) -> Box + Send> { -- cgit v1.2.3