pub struct BasicCredentialScope { /* private fields */ }Expand description
Immutable owned scope attached to one credential lifecycle.
Implementations§
Source§impl BasicCredentialScope
impl BasicCredentialScope
Sourcepub const fn new(
provider: ProviderId,
service: ServiceId,
endpoint: HttpsEndpoint,
) -> Self
pub const fn new( provider: ProviderId, service: ServiceId, endpoint: HttpsEndpoint, ) -> Self
Binds a credential to one provider, service, and transport endpoint.
Sourcepub fn try_with_audience(
self,
value: &str,
) -> Result<Self, CredentialScopeError>
pub fn try_with_audience( self, value: &str, ) -> Result<Self, CredentialScopeError>
Binds a provider-owned audience.
Sourcepub fn try_with_account(self, value: &str) -> Result<Self, CredentialScopeError>
pub fn try_with_account(self, value: &str) -> Result<Self, CredentialScopeError>
Binds a provider-owned account.
Sourcepub fn try_with_tenant(self, value: &str) -> Result<Self, CredentialScopeError>
pub fn try_with_tenant(self, value: &str) -> Result<Self, CredentialScopeError>
Binds a provider-owned tenant.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BasicCredentialScope
impl RefUnwindSafe for BasicCredentialScope
impl Send for BasicCredentialScope
impl Sync for BasicCredentialScope
impl Unpin for BasicCredentialScope
impl UnsafeUnpin for BasicCredentialScope
impl UnwindSafe for BasicCredentialScope
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