Skip to content

derive-0.32.0

Compare
Choose a tag to compare
@blackbeam blackbeam released this 31 Dec 12:17
· 5 commits to master since this release

Breaking

The with attribute of the FromRow derive macro was replaced with the following pair of attributes:

  • #[mysql(deserialize_with = "some::path")] – the following function will be used to deserialize the field (instead of FromValue implementation). Expected signature is fn (Value) -> Result<T, FromValueError>.
  • #[mysql(serialize_with = "some::path")] – the following function will be used to serialize the field (instead of Into<Value> implementation). Expected signature is fn (T) -> Value. This is only used in a recovery path to restore the original row when conversion fails.

Full Changelog: derive-0.31.2...derive-0.32.0