derive-0.32.0
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 ofFromValue
implementation). Expected signature isfn (Value) -> Result<T, FromValueError>
.#[mysql(serialize_with = "some::path")]
– the following function will be used to serialize the field (instead ofInto<Value>
implementation). Expected signature isfn (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