rbs

Crates.iorbs
lib.rsrbs
version4.5.18
sourcesrc
created_at2022-08-06 09:41:18.408338
updated_at2024-07-10 14:03:42.583945
descriptionSerialization framework for ORM
homepagehttps://rbatis.github.io/rbatis.io
repositoryhttps://github.com/rbatis/rbatis
max_upload_size
id639779
size69,141
zxj (zhuxiujia)

documentation

https://rbatis.github.io/rbatis.io

README

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);
}
Commit count: 5700

cargo fmt