#[derive(NoSQLRow)]
{
// Attributes available to this derive:
#[nosql]
}
Expand description
Derive macro to specify a struct that can be written directly into, and read directly from, a NoSQL table row.
The single nosql
attribute can be used to rename a field using the column
key, and/or to specify
its NoSQL Database field type using the type
key (for example, from a Rust i32
to a NoSQL long
).
See the documentation of PutRequest::put()
for
example usage of this macro to put and get native structs to and from a NoSQL Database table.