summaryrefslogtreecommitdiffstats
path: root/rust/fatcat-api/src/models.rs
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-05-15 22:32:43 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-05-15 22:34:49 -0700
commitc4a4957d2f6a5ded19e47ca4d42ea8cf19742ece (patch)
treea26fcf2ca01ddd313d3193bb48bc20ca4e0b9949 /rust/fatcat-api/src/models.rs
parent54a31b551427a584250ac1e17f76be3211ba7012 (diff)
downloadfatcat-c4a4957d2f6a5ded19e47ca4d42ea8cf19742ece.tar.gz
fatcat-c4a4957d2f6a5ded19e47ca4d42ea8cf19742ece.zip
less ambigous error response name
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r--rust/fatcat-api/src/models.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/rust/fatcat-api/src/models.rs b/rust/fatcat-api/src/models.rs
index b6f450aa..2b187eaf 100644
--- a/rust/fatcat-api/src/models.rs
+++ b/rust/fatcat-api/src/models.rs
@@ -191,14 +191,14 @@ impl EntityEdit {
}
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
-pub struct Error {
+pub struct ErrorResponse {
#[serde(rename = "message")]
pub message: String,
}
-impl Error {
- pub fn new(message: String) -> Error {
- Error { message: message }
+impl ErrorResponse {
+ pub fn new(message: String) -> ErrorResponse {
+ ErrorResponse { message: message }
}
}