[][src]Function restq::ast::ddl::table_def

pub fn table_def<'a>() -> Parser<'a, char, TableDef>

example: product{*product_id:s32,@name:text,description:text,updated:utc,created_by(users):u32,@is_active:bool}

or

product(*product_id:s32,@name:text,description:text,updated:utc,created_by(users):u32,@is_active:bool)

Note: that braces {} are invalid when used in the path part, but can be valid when used in query part. So it is safe to use the parenthesis () when used in actual rest api request.