23 stable releases

4.5.25 Jan 16, 2025
4.5.24 Nov 8, 2024
4.5.23 Oct 25, 2024
4.5.18 Jul 10, 2024
0.1.13 Nov 17, 2022

#619 in Database interfaces

Download history 1069/week @ 2024-10-08 753/week @ 2024-10-15 808/week @ 2024-10-22 595/week @ 2024-10-29 620/week @ 2024-11-05 410/week @ 2024-11-12 535/week @ 2024-11-19 781/week @ 2024-11-26 673/week @ 2024-12-03 813/week @ 2024-12-10 530/week @ 2024-12-17 383/week @ 2024-12-24 412/week @ 2024-12-31 837/week @ 2025-01-07 850/week @ 2025-01-14 571/week @ 2025-01-21

2,801 downloads per month
Used in 35 crates (25 directly)

Apache-2.0

70KB
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;
fn main(){
    #[derive(serde::Serialize, serde::Deserialize, Debug)]
    pub struct A {
        pub name: String,
    }
    let a = A {
        name: "sss".to_string(),
    };
    let v = rbs::to_value(a).unwrap();
    println!("v: {}",v);
    let s: A = rbs::from_value(v).unwrap();
    println!("s:{:?}", s);
}

Dependencies

~1–1.8MB
~35K SLoC