#[non_exhaustive]
pub struct RouteTable { /* private fields */ }
Expand description

Describes a route table.

Implementations§

The associations between the route table and one or more subnets or a gateway.

Any virtual private gateway (VGW) propagating routes.

The ID of the route table.

The routes in the route table.

Any tags assigned to the route table.

The ID of the VPC.

The ID of the Amazon Web Services account that owns the route table.

Creates a new builder-style object to manufacture RouteTable.

Examples found in repository?
src/xml_deser.rs (line 29806)
29802
29803
29804
29805
29806
29807
29808
29809
29810
29811
29812
29813
29814
29815
29816
29817
29818
29819
29820
29821
29822
29823
29824
29825
29826
29827
29828
29829
29830
29831
29832
29833
29834
29835
29836
29837
29838
29839
29840
29841
29842
29843
29844
29845
29846
29847
29848
29849
29850
29851
29852
29853
29854
29855
29856
29857
29858
29859
29860
29861
29862
29863
29864
29865
29866
29867
29868
29869
29870
29871
29872
29873
29874
29875
29876
29877
29878
29879
29880
29881
29882
29883
29884
29885
29886
29887
29888
29889
29890
29891
29892
pub fn deser_structure_crate_model_route_table(
    decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RouteTable, aws_smithy_xml::decode::XmlDecodeError> {
    #[allow(unused_mut)]
    let mut builder = crate::model::RouteTable::builder();
    while let Some(mut tag) = decoder.next_tag() {
        match tag.start_el() {
            s if s.matches("associationSet") /* Associations com.amazonaws.ec2#RouteTable$Associations */ =>  {
                let var_1277 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_route_table_association_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_associations(var_1277);
            }
            ,
            s if s.matches("propagatingVgwSet") /* PropagatingVgws com.amazonaws.ec2#RouteTable$PropagatingVgws */ =>  {
                let var_1278 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_propagating_vgw_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_propagating_vgws(var_1278);
            }
            ,
            s if s.matches("routeTableId") /* RouteTableId com.amazonaws.ec2#RouteTable$RouteTableId */ =>  {
                let var_1279 =
                    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_route_table_id(var_1279);
            }
            ,
            s if s.matches("routeSet") /* Routes com.amazonaws.ec2#RouteTable$Routes */ =>  {
                let var_1280 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_route_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_routes(var_1280);
            }
            ,
            s if s.matches("tagSet") /* Tags com.amazonaws.ec2#RouteTable$Tags */ =>  {
                let var_1281 =
                    Some(
                        crate::xml_deser::deser_list_com_amazonaws_ec2_tag_list(&mut tag)
                        ?
                    )
                ;
                builder = builder.set_tags(var_1281);
            }
            ,
            s if s.matches("vpcId") /* VpcId com.amazonaws.ec2#RouteTable$VpcId */ =>  {
                let var_1282 =
                    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_vpc_id(var_1282);
            }
            ,
            s if s.matches("ownerId") /* OwnerId com.amazonaws.ec2#RouteTable$OwnerId */ =>  {
                let var_1283 =
                    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_owner_id(var_1283);
            }
            ,
            _ => {}
        }
    }
    Ok(builder.build())
}

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
This method tests for self and other values to be equal, and is used by ==. Read more
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more