Struct aws_sdk_ec2::model::CreateVolumePermission
source · #[non_exhaustive]pub struct CreateVolumePermission { /* private fields */ }
Expand description
Describes the user or group to be added or removed from the list of create volume permissions for a volume.
Implementations§
source§impl CreateVolumePermission
impl CreateVolumePermission
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateVolumePermission
.
Examples found in repository?
src/xml_deser.rs (line 49479)
49475 49476 49477 49478 49479 49480 49481 49482 49483 49484 49485 49486 49487 49488 49489 49490 49491 49492 49493 49494 49495 49496 49497 49498 49499 49500 49501 49502 49503 49504 49505 49506 49507 49508 49509 49510 49511 49512 49513
pub fn deser_structure_crate_model_create_volume_permission(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::CreateVolumePermission, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::CreateVolumePermission::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("group") /* Group com.amazonaws.ec2#CreateVolumePermission$Group */ => {
let var_2303 =
Some(
Result::<crate::model::PermissionGroup, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::PermissionGroup::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_group(var_2303);
}
,
s if s.matches("userId") /* UserId com.amazonaws.ec2#CreateVolumePermission$UserId */ => {
let var_2304 =
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_user_id(var_2304);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for CreateVolumePermission
impl Clone for CreateVolumePermission
source§fn clone(&self) -> CreateVolumePermission
fn clone(&self) -> CreateVolumePermission
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