This post shows a simple implementation of the Chain of Responsibility pattern in Rust. For example, we have a set of struct instances that check for a file, read it, and finally, display it. We could imagine these instances as
Rust – How to Return JSON Responses from Actix-web
Are you planning to develop an API-only backend using Rust and Actix-web? If so, you need to know how to return JSON responses from Actix-web. This post briefly shows how to create a Rust application using actix-web that returns JSON responses.
Rust – Convert Struct Instances to and from JSON
In Rust, there are two excellent crates that can convert struct instances to and from JSON. These are perfect for creating RESTful APIs that consume and produce JSON content. These are serde and serde_json crates. Use Rust Crates In Cargo.toml If
MySQL JSON Type
MySQL has started supporting JSON column data type since MySQL 5.7.8. This post explores this new type and its basic usages.
Path Parameter and JSON Payload in Actix-Web
This post demonstrates how to capture path parameters and JSON payload in Actix-web .
Send HTTP Responses From Actix-Web
Learning how to send HTTP responses from Actix-web to clients will help us craft the responses according to our needs. For instance, we could send JSON responses for specific URIs. Although we could just set the response content type and