Macrosยง
- bigdecimal_
to_ u128 - Expands to a macro that either converts the BigDecimal passed in to a u128 or returns a HTTP 500 from the function.
- expand_
version - Expands to a format! call that returns the path passed in with /api/v{} prefixed and v{} replaced with the current API version, 0 as of this writing.
- get_
db_ or_ fail - Expands to a block that either fetches the DB pool and returns it or returns a HTTP 500 from the function.
- get_
item_ id