Struct aws_sdk_grafana::types::builders::PermissionEntryBuilder
source · #[non_exhaustive]pub struct PermissionEntryBuilder { /* private fields */ }
Expand description
A builder for PermissionEntry
.
Implementations§
source§impl PermissionEntryBuilder
impl PermissionEntryBuilder
sourcepub fn user(self, input: User) -> Self
pub fn user(self, input: User) -> Self
A structure with the ID of the user or group with this role.
This field is required.sourcepub fn set_user(self, input: Option<User>) -> Self
pub fn set_user(self, input: Option<User>) -> Self
A structure with the ID of the user or group with this role.
sourcepub fn get_user(&self) -> &Option<User>
pub fn get_user(&self) -> &Option<User>
A structure with the ID of the user or group with this role.
sourcepub fn role(self, input: Role) -> Self
pub fn role(self, input: Role) -> Self
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn set_role(self, input: Option<Role>) -> Self
pub fn set_role(self, input: Option<Role>) -> Self
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn get_role(&self) -> &Option<Role>
pub fn get_role(&self) -> &Option<Role>
Specifies whether the user or group has the Admin
, Editor
, or Viewer
role.
sourcepub fn build(self) -> Result<PermissionEntry, BuildError>
pub fn build(self) -> Result<PermissionEntry, BuildError>
Consumes the builder and constructs a PermissionEntry
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for PermissionEntryBuilder
impl Clone for PermissionEntryBuilder
source§fn clone(&self) -> PermissionEntryBuilder
fn clone(&self) -> PermissionEntryBuilder
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 PermissionEntryBuilder
impl Debug for PermissionEntryBuilder
source§impl Default for PermissionEntryBuilder
impl Default for PermissionEntryBuilder
source§fn default() -> PermissionEntryBuilder
fn default() -> PermissionEntryBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for PermissionEntryBuilder
impl PartialEq for PermissionEntryBuilder
source§fn eq(&self, other: &PermissionEntryBuilder) -> bool
fn eq(&self, other: &PermissionEntryBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PermissionEntryBuilder
Auto Trait Implementations§
impl Freeze for PermissionEntryBuilder
impl RefUnwindSafe for PermissionEntryBuilder
impl Send for PermissionEntryBuilder
impl Sync for PermissionEntryBuilder
impl Unpin for PermissionEntryBuilder
impl UnwindSafe for PermissionEntryBuilder
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>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.