The serialization for primitive types that is generated via the `serialize_type!` macro completely ignores i/o errors. https://github.com/media-io/yaserde/blob/2018ee5d7092ef0a00c4219a9e439997618aacab/yaserde/src/lib.rs#L180