Function aws_smithy_json::deserialize::token::expect_timestamp_or_null
source · pub fn expect_timestamp_or_null(
token: Option<Result<Token<'_>, DeserializeError>>,
timestamp_format: Format
) -> Result<Option<DateTime>, DeserializeError>
Expand description
Expects a Token::ValueNull, Token::ValueString, or Token::ValueNumber depending
on the passed in timestamp_format
. If there is a non-null value, it interprets it as an
DateTime
in the requested format.