Function redmine_api::api::serialize_optional_rfc3339
source · [−]pub fn serialize_optional_rfc3339<S>(
t: &Option<OffsetDateTime>,
serializer: S
) -> Result<S::Ok, S::Error> where
S: Serializer,
Expand description
helper to serialize created_on and updated_on in the correct format (default time serde implementation seems to use a different format)
Errors
This will return an error if the parameter can not be formatted as RFC3339 or the resulting string can not be serialized