pub struct StatementBuilder { /* private fields */ }
Expand description
Builder for Statement
.
Implementations§
Source§impl StatementBuilder
impl StatementBuilder
Sourcepub fn sid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn sid<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The user-provided statement id.
Sourcepub fn effect(&mut self, value: Effect) -> &mut Self
pub fn effect(&mut self, value: Effect) -> &mut Self
The effect of the statement (allow or deny).
Sourcepub fn action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
pub fn action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
The list of actions this statement applies to. Exactly one of action
or not_action
must be set.
Sourcepub fn not_action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
pub fn not_action<VALUE: Into<ActionList>>(&mut self, value: VALUE) -> &mut Self
The list of actions this statement does not apply to. Exactly one of action
or not_action
must be set.
Sourcepub fn resource<VALUE: Into<ResourceList>>(&mut self, value: VALUE) -> &mut Self
pub fn resource<VALUE: Into<ResourceList>>(&mut self, value: VALUE) -> &mut Self
The list of resources this statement applies to. This cannot be combined with not_resource
.
Sourcepub fn not_resource<VALUE: Into<ResourceList>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn not_resource<VALUE: Into<ResourceList>>( &mut self, value: VALUE, ) -> &mut Self
The list of resources this statement does not apply to. This cannot be combined with resource
.
Sourcepub fn principal<VALUE: Into<Principal>>(&mut self, value: VALUE) -> &mut Self
pub fn principal<VALUE: Into<Principal>>(&mut self, value: VALUE) -> &mut Self
The list of principals this statement applies to. This cannot be combined with not_principal
.
Sourcepub fn not_principal<VALUE: Into<Principal>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn not_principal<VALUE: Into<Principal>>( &mut self, value: VALUE, ) -> &mut Self
The list of principals this statement does not apply to. This cannot be combined with principal
.
Trait Implementations§
Source§impl Clone for StatementBuilder
impl Clone for StatementBuilder
Source§fn clone(&self) -> StatementBuilder
fn clone(&self) -> StatementBuilder
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 moreAuto Trait Implementations§
impl Freeze for StatementBuilder
impl RefUnwindSafe for StatementBuilder
impl Send for StatementBuilder
impl Sync for StatementBuilder
impl Unpin for StatementBuilder
impl UnwindSafe for StatementBuilder
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