Struct aws_sdk_s3::model::RedirectAllRequestsTo
source · #[non_exhaustive]pub struct RedirectAllRequestsTo { /* private fields */ }
Expand description
Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.
Implementations§
source§impl RedirectAllRequestsTo
impl RedirectAllRequestsTo
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture RedirectAllRequestsTo
.
Examples found in repository?
src/xml_deser.rs (line 3658)
3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692
pub fn deser_structure_crate_model_redirect_all_requests_to(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::RedirectAllRequestsTo, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::RedirectAllRequestsTo::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("HostName") /* HostName com.amazonaws.s3#RedirectAllRequestsTo$HostName */ => {
let var_200 =
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_host_name(var_200);
}
,
s if s.matches("Protocol") /* Protocol com.amazonaws.s3#RedirectAllRequestsTo$Protocol */ => {
let var_201 =
Some(
Result::<crate::model::Protocol, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::Protocol::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_protocol(var_201);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for RedirectAllRequestsTo
impl Clone for RedirectAllRequestsTo
source§fn clone(&self) -> RedirectAllRequestsTo
fn clone(&self) -> RedirectAllRequestsTo
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