pub struct CredentialsBuilder { /* private fields */ }Implementations§
Source§impl CredentialsBuilder
impl CredentialsBuilder
pub fn new() -> Self
pub fn session_policy(self, policy: Option<Policy>) -> Self
pub fn access_key(self, access_key: String) -> Self
pub fn secret_key(self, secret_key: String) -> Self
pub fn name(self, name: String) -> Self
pub fn description(self, description: String) -> Self
pub fn expiration(self, expiration: Option<OffsetDateTime>) -> Self
pub fn allow_site_replicator_account( self, allow_site_replicator_account: bool, ) -> Self
pub fn claims(self, claims: Value) -> Self
pub fn parent_user(self, parent_user: String) -> Self
pub fn groups(self, groups: Vec<String>) -> Self
pub fn try_build(self) -> Result<Credentials>
Trait Implementations§
Source§impl Default for CredentialsBuilder
impl Default for CredentialsBuilder
Source§fn default() -> CredentialsBuilder
fn default() -> CredentialsBuilder
Returns the “default value” for a type. Read more
Source§impl TryFrom<CredentialsBuilder> for Credentials
impl TryFrom<CredentialsBuilder> for Credentials
Auto Trait Implementations§
impl Freeze for CredentialsBuilder
impl RefUnwindSafe for CredentialsBuilder
impl Send for CredentialsBuilder
impl Sync for CredentialsBuilder
impl Unpin for CredentialsBuilder
impl UnsafeUnpin for CredentialsBuilder
impl UnwindSafe for CredentialsBuilder
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