Crates.io | surrealdb-obj-derive |
lib.rs | surrealdb-obj-derive |
version | 0.1.1 |
source | src |
created_at | 2022-11-12 01:55:05.579791 |
updated_at | 2022-11-14 13:06:06.76398 |
description | a derive from surrealdb-schema-derive |
homepage | |
repository | https://github.com/huang12zheng/surrealdb-schema-derive/ |
max_upload_size | |
id | 713244 |
size | 2,691 |
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,
}
cargo install cargo-release
cargo release publish --workspace --registry crates-io --execute
cargo release push --execute
# cargo publish --no-verify