Struct aws_sdk_ec2::model::SnapshotDetail
source · #[non_exhaustive]pub struct SnapshotDetail { /* private fields */ }
Expand description
Describes the snapshot created from the imported disk.
Implementations§
source§impl SnapshotDetail
impl SnapshotDetail
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description for the snapshot.
sourcepub fn device_name(&self) -> Option<&str>
pub fn device_name(&self) -> Option<&str>
The block device mapping for the snapshot.
sourcepub fn disk_image_size(&self) -> Option<f64>
pub fn disk_image_size(&self) -> Option<f64>
The size of the disk in the snapshot, in GiB.
sourcepub fn format(&self) -> Option<&str>
pub fn format(&self) -> Option<&str>
The format of the disk image from which the snapshot is created.
sourcepub fn snapshot_id(&self) -> Option<&str>
pub fn snapshot_id(&self) -> Option<&str>
The snapshot ID of the disk being imported.
sourcepub fn status_message(&self) -> Option<&str>
pub fn status_message(&self) -> Option<&str>
A detailed status message for the snapshot creation.
sourcepub fn user_bucket(&self) -> Option<&UserBucketDetails>
pub fn user_bucket(&self) -> Option<&UserBucketDetails>
The Amazon S3 bucket for the disk image.
source§impl SnapshotDetail
impl SnapshotDetail
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture SnapshotDetail
.
Examples found in repository?
src/xml_deser.rs (line 54216)
54212 54213 54214 54215 54216 54217 54218 54219 54220 54221 54222 54223 54224 54225 54226 54227 54228 54229 54230 54231 54232 54233 54234 54235 54236 54237 54238 54239 54240 54241 54242 54243 54244 54245 54246 54247 54248 54249 54250 54251 54252 54253 54254 54255 54256 54257 54258 54259 54260 54261 54262 54263 54264 54265 54266 54267 54268 54269 54270 54271 54272 54273 54274 54275 54276 54277 54278 54279 54280 54281 54282 54283 54284 54285 54286 54287 54288 54289 54290 54291 54292 54293 54294 54295 54296 54297 54298 54299 54300 54301 54302 54303 54304 54305 54306 54307 54308 54309 54310 54311 54312 54313 54314 54315 54316 54317 54318 54319 54320 54321 54322 54323 54324 54325 54326 54327 54328 54329 54330 54331 54332 54333 54334 54335 54336 54337 54338 54339 54340 54341 54342 54343 54344 54345 54346 54347 54348 54349 54350 54351 54352
pub fn deser_structure_crate_model_snapshot_detail(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::SnapshotDetail, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::SnapshotDetail::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("description") /* Description com.amazonaws.ec2#SnapshotDetail$Description */ => {
let var_2602 =
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_description(var_2602);
}
,
s if s.matches("deviceName") /* DeviceName com.amazonaws.ec2#SnapshotDetail$DeviceName */ => {
let var_2603 =
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_device_name(var_2603);
}
,
s if s.matches("diskImageSize") /* DiskImageSize com.amazonaws.ec2#SnapshotDetail$DiskImageSize */ => {
let var_2604 =
Some(
{
<f64 as aws_smithy_types::primitive::Parse>::parse_smithy_primitive(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
.map_err(|_|aws_smithy_xml::decode::XmlDecodeError::custom("expected (double: `com.amazonaws.ec2#Double`)"))
}
?
)
;
builder = builder.set_disk_image_size(var_2604);
}
,
s if s.matches("format") /* Format com.amazonaws.ec2#SnapshotDetail$Format */ => {
let var_2605 =
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_format(var_2605);
}
,
s if s.matches("progress") /* Progress com.amazonaws.ec2#SnapshotDetail$Progress */ => {
let var_2606 =
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_progress(var_2606);
}
,
s if s.matches("snapshotId") /* SnapshotId com.amazonaws.ec2#SnapshotDetail$SnapshotId */ => {
let var_2607 =
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_snapshot_id(var_2607);
}
,
s if s.matches("status") /* Status com.amazonaws.ec2#SnapshotDetail$Status */ => {
let var_2608 =
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_status(var_2608);
}
,
s if s.matches("statusMessage") /* StatusMessage com.amazonaws.ec2#SnapshotDetail$StatusMessage */ => {
let var_2609 =
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_status_message(var_2609);
}
,
s if s.matches("url") /* Url com.amazonaws.ec2#SnapshotDetail$Url */ => {
let var_2610 =
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_url(var_2610);
}
,
s if s.matches("userBucket") /* UserBucket com.amazonaws.ec2#SnapshotDetail$UserBucket */ => {
let var_2611 =
Some(
crate::xml_deser::deser_structure_crate_model_user_bucket_details(&mut tag)
?
)
;
builder = builder.set_user_bucket(var_2611);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for SnapshotDetail
impl Clone for SnapshotDetail
source§fn clone(&self) -> SnapshotDetail
fn clone(&self) -> SnapshotDetail
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