pub struct StaticAuthOptionResolver { /* private fields */ }Expand description
New-type around a Vec<HttpAuthOption> that implements AuthOptionResolver.
This is useful for clients that don’t require AuthOptionResolverParams to resolve auth options.
Implementations§
source§impl StaticAuthOptionResolver
impl StaticAuthOptionResolver
sourcepub fn new(auth_options: Vec<AuthSchemeId>) -> Self
pub fn new(auth_options: Vec<AuthSchemeId>) -> Self
Creates a new instance of StaticAuthOptionResolver.
Trait Implementations§
source§impl AuthOptionResolver for StaticAuthOptionResolver
impl AuthOptionResolver for StaticAuthOptionResolver
fn resolve_auth_options( &self, _params: &AuthOptionResolverParams ) -> Result<Cow<'_, [AuthSchemeId]>, BoxError>
Auto Trait Implementations§
impl RefUnwindSafe for StaticAuthOptionResolver
impl Send for StaticAuthOptionResolver
impl Sync for StaticAuthOptionResolver
impl Unpin for StaticAuthOptionResolver
impl UnwindSafe for StaticAuthOptionResolver
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