Struct aws_sdk_ec2::model::ServiceTypeDetail
source · #[non_exhaustive]pub struct ServiceTypeDetail { /* private fields */ }
Expand description
Describes the type of service for a VPC endpoint.
Implementations§
source§impl ServiceTypeDetail
impl ServiceTypeDetail
sourcepub fn service_type(&self) -> Option<&ServiceType>
pub fn service_type(&self) -> Option<&ServiceType>
The type of service.
source§impl ServiceTypeDetail
impl ServiceTypeDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ServiceTypeDetail
.
Examples found in repository?
src/xml_deser.rs (line 57827)
57823 57824 57825 57826 57827 57828 57829 57830 57831 57832 57833 57834 57835 57836 57837 57838 57839 57840 57841 57842 57843 57844 57845 57846 57847 57848
pub fn deser_structure_crate_model_service_type_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ServiceTypeDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ServiceTypeDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("serviceType") /* ServiceType com.amazonaws.ec2#ServiceTypeDetail$ServiceType */ => {
let var_2818 =
Some(
Result::<crate::model::ServiceType, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ServiceType::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_service_type(var_2818);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ServiceTypeDetail
impl Clone for ServiceTypeDetail
source§fn clone(&self) -> ServiceTypeDetail
fn clone(&self) -> ServiceTypeDetail
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