2022-09-19 02:56:59 +00:00
|
|
|
use crate::err::Error;
|
2023-04-25 10:13:04 +00:00
|
|
|
use crate::sql::thing::Thing;
|
2022-09-19 02:56:59 +00:00
|
|
|
use crate::sql::value::Value;
|
|
|
|
|
2023-04-25 10:13:04 +00:00
|
|
|
pub fn id((arg,): (Thing,)) -> Result<Value, Error> {
|
|
|
|
Ok(arg.id.into())
|
2022-09-19 02:56:59 +00:00
|
|
|
}
|
|
|
|
|
2023-04-25 10:13:04 +00:00
|
|
|
pub fn tb((arg,): (Thing,)) -> Result<Value, Error> {
|
|
|
|
Ok(arg.tb.into())
|
2022-09-19 02:56:59 +00:00
|
|
|
}
|