pub struct PolicyBuilder { /* private fields */ }
Expand description
Builder for Policy
.
Implementations§
Source§impl PolicyBuilder
impl PolicyBuilder
Sourcepub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn description<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
A friendly description of the policy.
Sourcepub fn policy_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
pub fn policy_name<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
The friendly name of the policy.
pub fn policy_document<VALUE: Into<String>>( &mut self, value: VALUE, ) -> &mut Self
pub fn namespace<VALUE: Into<String>>(&mut self, value: VALUE) -> &mut Self
Trait Implementations§
Source§impl Clone for PolicyBuilder
impl Clone for PolicyBuilder
Source§fn clone(&self) -> PolicyBuilder
fn clone(&self) -> PolicyBuilder
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 PolicyBuilder
impl RefUnwindSafe for PolicyBuilder
impl Send for PolicyBuilder
impl Sync for PolicyBuilder
impl Unpin for PolicyBuilder
impl UnwindSafe for PolicyBuilder
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