pub(crate) fn de_token_exchange_grant<'a, I>(
tokens: &mut ::std::iter::Peekable<I>,
) -> Result<Option<crate::types::TokenExchangeGrant>, ::aws_smithy_json::deserialize::error::DeserializeError>
where
I: Iterator<Item = Result<::aws_smithy_json::deserialize::Token<'a>, ::aws_smithy_json::deserialize::error::DeserializeError>>,
{
match tokens.next().transpose()? {
Some(::aws_smithy_json::deserialize::Token::ValueNull { .. }) => Ok(None),
Some(::aws_smithy_json::deserialize::Token::StartObject { .. }) => {
#[allow(unused_mut)]
let mut builder = crate::types::builders::TokenExchangeGrantBuilder::default();
::aws_smithy_json::deserialize::token::skip_to_end(tokens)?;
Ok(Some(builder.build()))
}
_ => Err(::aws_smithy_json::deserialize::error::DeserializeError::custom(
"expected start object or null",
)),
}
}
pub fn ser_token_exchange_grant(
#[allow(unused_variables)] object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
#[allow(unused_variables)] input: &crate::types::TokenExchangeGrant,
) -> Result<(), ::aws_smithy_types::error::operation::SerializationError> {
Ok(())
}