pub struct AuthenticationScope<'a> { /* private fields */ }Expand description
Immutable borrowed scope bound to one admitted credential.
Implementations§
Source§impl<'a> AuthenticationScope<'a>
impl<'a> AuthenticationScope<'a>
Sourcepub const fn unscoped() -> Self
pub const fn unscoped() -> Self
Creates a completely unscoped credential identity.
A policy with any required field rejects this value.
Sourcepub const fn with_provider(self, value: ProviderId) -> Self
pub const fn with_provider(self, value: ProviderId) -> Self
Binds a provider.
Sourcepub const fn with_service(self, value: ServiceId) -> Self
pub const fn with_service(self, value: ServiceId) -> Self
Binds a provider-owned service.
Sourcepub const fn with_endpoint(self, value: EndpointIdentity<'a>) -> Self
pub const fn with_endpoint(self, value: EndpointIdentity<'a>) -> Self
Binds a normalized endpoint identity.
Sourcepub const fn with_audience(self, value: ScopeValue<'a>) -> Self
pub const fn with_audience(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned audience.
Sourcepub const fn with_account(self, value: ScopeValue<'a>) -> Self
pub const fn with_account(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned account.
Sourcepub const fn with_tenant(self, value: ScopeValue<'a>) -> Self
pub const fn with_tenant(self, value: ScopeValue<'a>) -> Self
Binds a provider-owned tenant.
Trait Implementations§
Source§impl<'a> Clone for AuthenticationScope<'a>
impl<'a> Clone for AuthenticationScope<'a>
Source§fn clone(&self) -> AuthenticationScope<'a>
fn clone(&self) -> AuthenticationScope<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for AuthenticationScope<'a>
Auto Trait Implementations§
impl<'a> Freeze for AuthenticationScope<'a>
impl<'a> RefUnwindSafe for AuthenticationScope<'a>
impl<'a> Send for AuthenticationScope<'a>
impl<'a> Sync for AuthenticationScope<'a>
impl<'a> Unpin for AuthenticationScope<'a>
impl<'a> UnsafeUnpin for AuthenticationScope<'a>
impl<'a> UnwindSafe for AuthenticationScope<'a>
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