Updated rename-all docs

This commit is contained in:
Federico Rampazzo 2020-11-28 00:55:50 +00:00 committed by Ryan Leckey
parent 00a999145f
commit aa0adaa434

View file

@ -53,7 +53,7 @@ use crate::row::Row;
///
/// ```rust,ignore
/// #[derive(sqlx::FromRow)]
/// #[sqlx(rename_all = "camelCase")]
/// #[sqlx(rename_all = "mixedCase")]
/// struct UserPost {
/// id: i32,
/// // remapped to "userId"
@ -63,7 +63,7 @@ use crate::row::Row;
/// ```
///
/// The supported values are `snake_case` (available if you have non-snake-case field names for some
/// reason), `lowercase`, `UPPERCASE`, `camelCase`, `SCREAMING_SNAKE_CASE` and `kebab-case`.
/// reason), `lowercase`, `UPPERCASE`, `mixedCase`, `CamelCase`, `SCREAMING_SNAKE_CASE` and `kebab-case`.
/// The styling of each option is intended to be an example of its behavior.
///
/// #### `default`