Hi! While I was creating a sample on how to use OpenAI APIs in Rust, I realized that I needed to serialize and deserialize some data in JSON format. Lucky me, Serde JSON works great! Serde JSON Serde JSON is a library for serializing and deserializing Rust data structures efficiently and generically12. It provides ways…… Continue reading #Rust 🦀 – Serializing and Deserializing data structures to JSON with Serde
Tag: Data Type
#Rust 🦀 – How to find a variable data type 🤔
Hi ! Quick post today to share how to find a variable data type in Rust. As far as I understand, we can use several ways to do this. In example, we can use these 2 std functions: use std::any::type_name function use std::intrinsics::type_name The full sample code below create 2 vectors with different data, and…… Continue reading #Rust 🦀 – How to find a variable data type 🤔