Struct aws_sdk_s3::types::TargetGrant
source · #[non_exhaustive]pub struct TargetGrant {
pub grantee: Option<Grantee>,
pub permission: Option<BucketLogsPermission>,
}
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.grantee: Option<Grantee>
Container for the person being granted permissions.
permission: Option<BucketLogsPermission>
Logging permissions assigned to the grantee for the bucket.
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() -> TargetGrantBuilder
pub fn builder() -> TargetGrantBuilder
Creates a new builder-style object to manufacture TargetGrant
.
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 moresource§impl Debug for TargetGrant
impl Debug for TargetGrant
source§impl PartialEq for TargetGrant
impl PartialEq for TargetGrant
impl StructuralPartialEq for TargetGrant
Auto Trait Implementations§
impl Freeze for TargetGrant
impl RefUnwindSafe for TargetGrant
impl Send for TargetGrant
impl Sync for TargetGrant
impl Unpin for TargetGrant
impl UnwindSafe for TargetGrant
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.