aws-sdk-devopsagent 1.3.0

AWS SDK for AWS DevOps Agent Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
pub fn ser_grafana_service_details(
    object: &mut ::aws_smithy_json::serialize::JsonObjectWriter,
    input: &crate::types::GrafanaServiceDetails,
) -> ::std::result::Result<(), ::aws_smithy_types::error::operation::SerializationError> {
    {
        object.key("name").string(input.name.as_str());
    }
    {
        object.key("endpoint").string(input.endpoint.as_str());
    }
    if let Some(var_1) = &input.description {
        object.key("description").string(var_1.as_str());
    }
    if let Some(var_2) = &input.authorization_config {
        #[allow(unused_mut)]
        let mut object_3 = object.key("authorizationConfig").start_object();
        crate::protocol_serde::shape_mcp_server_authorization_config::ser_mcp_server_authorization_config(&mut object_3, var_2)?;
        object_3.finish();
    }
    Ok(())
}