Open huang12zheng opened 2 years ago
[
Object(
Object(
{
"id": Thing(
Thing {
tb: "account",
id: String(
"lta4upc9vg42w3mkb4rt",
),
},
),
"mobile": Array(
Array(
[
Number(
Int(
17682318150,
),
),
],
),
),
"name": Strand(
Strand(
"hz",
),
),
},
),
),
],
)
impl_surreal_value_try_from!(surrealdb::sql::Value::Array(it) => it => Array);
impl_into_surreal_value!(Array);
#[derive(SurrealDbObject, Debug, Clone)]
pub struct Account {
// pub id: Thing,
pub name: String,
pub mobile: Array,
}
and impl Vec
maybe just use serde would work?
there just have i32 in surrealdb, so u64 is difficult to work
the trait bound
account_manage::Account: std::convert::From<app_db_schema::SurrealValue>
is not satisfied required forapp_db_schema::SurrealValue
to implementInto<account_manage::Account>