skip to Main Content

Unable to use u128 datatype via MongoDB Rust driver: BsonSerialization(SerializationError { message: "u128 is not supported" })

I need help using Rust's u128 data type via MongoDB's Rust driver. Please find my minimal example below: use mongodb::{bson::{doc}, options::{ClientOptions, ServerApi, ServerApiVersion}, Client}; use serde::{Deserialize, Serialize}; #[derive(Debug, Deserialize, Serialize)] struct Book { id : u128, title : String, author:…

VIEW QUESTION
Back To Top
Search