diff options
Diffstat (limited to 'rust/fatcat-api/src/models.rs')
-rw-r--r-- | rust/fatcat-api/src/models.rs | 8 |
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 } } } |