aws-sdk-context 1.0.0

AWS SDK for AWS Context
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_search_agent_context_input_input(
    encoder: &mut ::aws_smithy_cbor::Encoder,
    #[allow(unused)] input: &crate::operation::search_agent_context::SearchAgentContextInput,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    encoder.begin_map();
    if let Some(var_1) = &input.max_results {
        encoder.str("maxResults").integer(*var_1);
    }
    if let Some(var_2) = &input.next_token {
        encoder.str("nextToken").str(var_2.as_str());
    }
    if let Some(var_3) = &input.agent_context_id {
        encoder.str("agentContextId").str(var_3.as_str());
    }
    if let Some(var_4) = &input.query {
        encoder.str("query").str(var_4.as_str());
    }
    if let Some(var_5) = &input.filter {
        encoder.str("filter");
        crate::protocol_serde::shape_search_filter::ser_search_filter(encoder, var_5)?;
    }
    if let Some(var_6) = &input.search_type {
        encoder.str("searchType").str(var_6.as_str());
    }
    encoder.end();
    Ok(())
}