29 stable releases
| 5.0.2 |
|
|---|---|
| 4.8.4 | Apr 20, 2026 |
| 4.7.0 | Jan 5, 2026 |
| 4.6.2 | Jun 7, 2025 |
| 0.1.13 |
|
#1755 in Database interfaces
15,424 downloads per month
Used in 55 crates
(39 directly)
78KB
2K
SLoC
rbs
- rbs is rbatis's impl serde serialize trait crates.
- The rbs serialization framework is used to serialize parameters and deserialize sql result sets, and provides the value structure as py_ Sql and html_ The intermediate object representation of the expression in sql.
use example
use std::collections::HashMap;
#[derive(serde::Serialize, serde::Deserialize, Debug)]
pub struct A {
pub name: String,
}
fn main(){
let a = A {
name: "sss".to_string(),
};
let value = rbs::value(a).unwrap();
println!("value: {}",value);
let a: A = rbs::from_value(value).unwrap();
println!("a:{:?}", a);
//macro
let val = value! {
"name": "Alice",
"age": 30,
"city": "New York"
};
println!("val: {}",val);
}
Dependencies
~0.8–1.6MB
~31K SLoC