#[non_exhaustive]pub struct ClientVpnAuthorizationRuleStatus { /* private fields */ }
Expand description
Describes the state of an authorization rule.
Implementations§
source§impl ClientVpnAuthorizationRuleStatus
impl ClientVpnAuthorizationRuleStatus
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ClientVpnAuthorizationRuleStatus
.
Examples found in repository?
src/xml_deser.rs (line 25308)
25303 25304 25305 25306 25307 25308 25309 25310 25311 25312 25313 25314 25315 25316 25317 25318 25319 25320 25321 25322 25323 25324 25325 25326 25327 25328 25329 25330 25331 25332 25333 25334 25335 25336 25337 25338 25339 25340 25341 25342
pub fn deser_structure_crate_model_client_vpn_authorization_rule_status(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ClientVpnAuthorizationRuleStatus, aws_smithy_xml::decode::XmlDecodeError>
{
#[allow(unused_mut)]
let mut builder = crate::model::ClientVpnAuthorizationRuleStatus::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("code") /* Code com.amazonaws.ec2#ClientVpnAuthorizationRuleStatus$Code */ => {
let var_982 =
Some(
Result::<crate::model::ClientVpnAuthorizationRuleStatusCode, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ClientVpnAuthorizationRuleStatusCode::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_code(var_982);
}
,
s if s.matches("message") /* Message com.amazonaws.ec2#ClientVpnAuthorizationRuleStatus$Message */ => {
let var_983 =
Some(
Result::<std::string::String, aws_smithy_xml::decode::XmlDecodeError>::Ok(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
.into()
)
?
)
;
builder = builder.set_message(var_983);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ClientVpnAuthorizationRuleStatus
impl Clone for ClientVpnAuthorizationRuleStatus
source§fn clone(&self) -> ClientVpnAuthorizationRuleStatus
fn clone(&self) -> ClientVpnAuthorizationRuleStatus
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more