Struct aws_sdk_s3::model::TargetGrant
source · #[non_exhaustive]pub struct TargetGrant { /* private fields */ }
Expand description
Container for granting information.
Buckets that use the bucket owner enforced setting for Object Ownership don't support target grants. For more information, see Permissions server access log delivery in the Amazon S3 User Guide.
Implementations§
source§impl TargetGrant
impl TargetGrant
sourcepub fn permission(&self) -> Option<&BucketLogsPermission>
pub fn permission(&self) -> Option<&BucketLogsPermission>
Logging permissions assigned to the grantee for the bucket.
source§impl TargetGrant
impl TargetGrant
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture TargetGrant
.
Examples found in repository?
src/xml_deser.rs (line 6695)
6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726
pub fn deser_structure_crate_model_target_grant(
decoder: &mut aws_smithy_xml::decode::ScopedDecoder,
) -> Result<crate::model::TargetGrant, aws_smithy_xml::decode::XmlDecodeError> {
#[allow(unused_mut)]
let mut builder = crate::model::TargetGrant::builder();
while let Some(mut tag) = decoder.next_tag() {
match tag.start_el() {
s if s.matches("Grantee") /* Grantee com.amazonaws.s3#TargetGrant$Grantee */ => {
let var_366 =
Some(
crate::xml_deser::deser_structure_crate_model_grantee(&mut tag)
?
)
;
builder = builder.set_grantee(var_366);
}
,
s if s.matches("Permission") /* Permission com.amazonaws.s3#TargetGrant$Permission */ => {
let var_367 =
Some(
Result::<crate::model::BucketLogsPermission, aws_smithy_xml::decode::XmlDecodeError>::Ok(
crate::model::BucketLogsPermission::from(
aws_smithy_xml::decode::try_data(&mut tag)?.as_ref()
)
)
?
)
;
builder = builder.set_permission(var_367);
}
,
_ => {}
}
}
Ok(builder.build())
}
Trait Implementations§
source§impl Clone for TargetGrant
impl Clone for TargetGrant
source§fn clone(&self) -> TargetGrant
fn clone(&self) -> TargetGrant
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