From 95c69c42c4cbfc0c7dd214883aa0d9dc2b9ffc62 Mon Sep 17 00:00:00 2001 From: Franklin Date: Tue, 23 Aug 2022 09:56:36 -0400 Subject: [PATCH] Added readme --- Readme.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Readme.md b/Readme.md index e69de29..65f8396 100644 --- a/Readme.md +++ b/Readme.md @@ -0,0 +1,12 @@ +## Actix-web-utils +by franklin blanco + +Adds some useful structs to your typical web app, only compatible with actix-web. + +##### MessageResource +A key-message error type to return back a neat, well formatted error to a frontend. The key is optional, as I won't force you to use internationalization. + +#### TypedHttpResponse +A wrapper for HttpResponse. Contains a type specification inside so that you can visualize and expect a certain type. +Said type can only be a Serializable (Json). +It can also return a MessageResource or nothing at all. \ No newline at end of file