pub struct BearerAuthenticationSchemeDefinitionBuilder { /* private fields */ }Expand description
Represents the service used to build BearerAuthenticationSchemeDefinitions
Implementations§
Source§impl BearerAuthenticationSchemeDefinitionBuilder
impl BearerAuthenticationSchemeDefinitionBuilder
Sourcepub fn use_secret(&mut self, secret: &str)
pub fn use_secret(&mut self, secret: &str)
Configures the authentication scheme to load from the specified secret
Sourcepub fn with_token(&mut self, token: &str) -> &mut Self
pub fn with_token(&mut self, token: &str) -> &mut Self
Sets the bearer token to use
Sourcepub fn build(self) -> AuthenticationPolicyDefinition
pub fn build(self) -> AuthenticationPolicyDefinition
Builds the configured AuthenticationPolicyDefinition
Auto Trait Implementations§
impl Freeze for BearerAuthenticationSchemeDefinitionBuilder
impl RefUnwindSafe for BearerAuthenticationSchemeDefinitionBuilder
impl Send for BearerAuthenticationSchemeDefinitionBuilder
impl Sync for BearerAuthenticationSchemeDefinitionBuilder
impl Unpin for BearerAuthenticationSchemeDefinitionBuilder
impl UnwindSafe for BearerAuthenticationSchemeDefinitionBuilder
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