static ASSOCIATECONNECTIONALIASOUTPUT_MEMBER_CONNECTION_IDENTIFIER: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_member(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.workspaces.synthetic#AssociateConnectionAliasOutput$ConnectionIdentifier",
"com.amazonaws.workspaces.synthetic",
"AssociateConnectionAliasOutput",
),
::aws_smithy_schema::ShapeType::String,
"ConnectionIdentifier",
0,
);
static ASSOCIATECONNECTIONALIASOUTPUT_SCHEMA: ::aws_smithy_schema::Schema<'static> = ::aws_smithy_schema::Schema::new_struct(
::aws_smithy_schema::ShapeId::from_parts(
"com.amazonaws.workspaces.synthetic#AssociateConnectionAliasOutput",
"com.amazonaws.workspaces.synthetic",
"AssociateConnectionAliasOutput",
),
::aws_smithy_schema::ShapeType::Structure,
&[&ASSOCIATECONNECTIONALIASOUTPUT_MEMBER_CONNECTION_IDENTIFIER],
)
.with_original_name("AssociateConnectionAliasResult");
impl crate::operation::associate_connection_alias::AssociateConnectionAliasOutput {
pub const SCHEMA: &'static ::aws_smithy_schema::Schema<'static> = &ASSOCIATECONNECTIONALIASOUTPUT_SCHEMA;
}
impl ::aws_smithy_schema::serde::SerializableStruct for crate::operation::associate_connection_alias::AssociateConnectionAliasOutput {
fn schema(&self) -> &::aws_smithy_schema::Schema<'_> {
Self::SCHEMA
}
#[allow(unused_variables, clippy::diverging_sub_expression)]
fn serialize_members(
&self,
ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
if let Some(ref val) = self.connection_identifier {
ser.write_string(&ASSOCIATECONNECTIONALIASOUTPUT_MEMBER_CONNECTION_IDENTIFIER, val)?;
}
Ok(())
}
}
impl crate::operation::associate_connection_alias::builders::AssociateConnectionAliasOutputBuilder {
#[allow(
unused_variables,
unreachable_code,
clippy::single_match,
clippy::match_single_binding,
clippy::diverging_sub_expression
)]
pub(crate) fn deserialize_members(
&mut self,
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
deserializer.read_struct(&ASSOCIATECONNECTIONALIASOUTPUT_SCHEMA, &mut |member, deser| {
match member.member_index() {
Some(0) => {
if deser.is_null() {
deser.read_null()?;
} else {
self.connection_identifier = Some(deser.read_string(member)?);
}
}
_ => {}
}
Ok(())
})
}
}
impl crate::operation::associate_connection_alias::AssociateConnectionAliasOutput {
pub fn deserialize(
deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
let mut builder = Self::builder();
builder.deserialize_members(deserializer)?;
Ok(builder.build())
}
}