Struct aws_sdk_s3::model::OwnershipControls
source · #[non_exhaustive]pub struct OwnershipControls { /* private fields */ }
Expand description
The container element for a bucket's ownership controls.
Implementations§
source§impl OwnershipControls
impl OwnershipControls
sourcepub fn rules(&self) -> Option<&[OwnershipControlsRule]>
pub fn rules(&self) -> Option<&[OwnershipControlsRule]>
The container element for an ownership control rule.
source§impl OwnershipControls
impl OwnershipControls
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture OwnershipControls
.
Examples found in repository?
src/xml_deser.rs (line 4953)
4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977
pub fn deser_structure_crate_model_ownership_controls(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::OwnershipControls, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::OwnershipControls::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Rule") /* Rules com.amazonaws.s3#OwnershipControls$Rules */ => {
let var_280 =
Some(
Result::<std::vec::Vec<crate::model::OwnershipControlsRule>, aws_smithy_xml::decode::XmlDecodeError>::Ok({
let mut list_281 = builder.rules.take().unwrap_or_default();
list_281.push(
crate::xml_deser::deser_structure_crate_model_ownership_controls_rule(&mut tag)
?
);
list_281
})
?
)
;
builder = builder.set_rules(var_280);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for OwnershipControls
impl Clone for OwnershipControls
source§fn clone(&self) -> OwnershipControls
fn clone(&self) -> OwnershipControls
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