Crate ferrischat_macros

Crate ferrischat_macros 

Source

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