Struct aws_sdk_s3::model::ExistingObjectReplication
source · #[non_exhaustive]pub struct ExistingObjectReplication { /* private fields */ }
Expand description
Optional configuration to replicate existing source bucket objects. For more information, see Replicating Existing Objects in the Amazon S3 User Guide.
Implementations§
source§impl ExistingObjectReplication
impl ExistingObjectReplication
sourcepub fn status(&self) -> Option<&ExistingObjectReplicationStatus>
pub fn status(&self) -> Option<&ExistingObjectReplicationStatus>
source§impl ExistingObjectReplication
impl ExistingObjectReplication
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture ExistingObjectReplication
.
Examples found in repository?
src/xml_deser.rs (line 7249)
7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265 7266 7267 7268 7269 7270
pub fn deser_structure_crate_model_existing_object_replication(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::ExistingObjectReplication, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::ExistingObjectReplication::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Status") /* Status com.amazonaws.s3#ExistingObjectReplication$Status */ => {
let var_398 =
Some(
Result::<crate::model::ExistingObjectReplicationStatus, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::ExistingObjectReplicationStatus::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_status(var_398);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for ExistingObjectReplication
impl Clone for ExistingObjectReplication
source§fn clone(&self) -> ExistingObjectReplication
fn clone(&self) -> ExistingObjectReplication
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