2 releases

0.1.1 Nov 14, 2022
0.1.0 Nov 12, 2022

#20 in #thing

40 downloads per month
Used in app-db-schema

MIT license

20KB
409 lines

  • please check impl/src/lib.rs

  • usage

#[derive(Debug, Clone)]
pub struct Relation {
    pub id: Thing,
    pub from: Thing,
    pub with: Thing,
}

impl TryFrom<surrealdb_obj_derive::SurrealValue> for Relation {}

ref to crate schema

or

#[derive(SurrealDbObject, Debug, Clone)]
pub struct Mobile {
    pub id: u64,
}
  • release
cargo install cargo-release
cargo release publish --workspace --registry crates-io --execute
cargo release push  --execute
# cargo publish --no-verify

Dependencies

~68–110MB
~2M SLoC