Struct aws_sdk_glue::types::PrincipalPermissions
source · #[non_exhaustive]pub struct PrincipalPermissions {
pub principal: Option<DataLakePrincipal>,
pub permissions: Option<Vec<Permission>>,
}Expand description
Permissions granted to a principal.
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.principal: Option<DataLakePrincipal>The principal who is granted permissions.
permissions: Option<Vec<Permission>>The permissions that are granted to the principal.
Implementations§
source§impl PrincipalPermissions
impl PrincipalPermissions
sourcepub fn principal(&self) -> Option<&DataLakePrincipal>
pub fn principal(&self) -> Option<&DataLakePrincipal>
The principal who is granted permissions.
sourcepub fn permissions(&self) -> &[Permission]
pub fn permissions(&self) -> &[Permission]
The permissions that are granted to the principal.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .permissions.is_none().
source§impl PrincipalPermissions
impl PrincipalPermissions
sourcepub fn builder() -> PrincipalPermissionsBuilder
pub fn builder() -> PrincipalPermissionsBuilder
Creates a new builder-style object to manufacture PrincipalPermissions.
Trait Implementations§
source§impl Clone for PrincipalPermissions
impl Clone for PrincipalPermissions
source§fn clone(&self) -> PrincipalPermissions
fn clone(&self) -> PrincipalPermissions
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 PrincipalPermissions
impl Debug for PrincipalPermissions
source§impl PartialEq for PrincipalPermissions
impl PartialEq for PrincipalPermissions
source§fn eq(&self, other: &PrincipalPermissions) -> bool
fn eq(&self, other: &PrincipalPermissions) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for PrincipalPermissions
Auto Trait Implementations§
impl RefUnwindSafe for PrincipalPermissions
impl Send for PrincipalPermissions
impl Sync for PrincipalPermissions
impl Unpin for PrincipalPermissions
impl UnwindSafe for PrincipalPermissions
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> 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.