pub struct StaticAuthProvider { /* private fields */ }Expand description
AuthProvider that wraps a static set of headers applied to all endpoints.
Useful for simple API key authentication where the same header is sent to all facilitator endpoints.
Implementations§
Trait Implementations§
Source§impl AuthProvider for StaticAuthProvider
impl AuthProvider for StaticAuthProvider
Source§fn get_auth_headers(&self) -> AuthHeaders
fn get_auth_headers(&self) -> AuthHeaders
Returns authentication headers for each facilitator endpoint.
Source§impl Clone for StaticAuthProvider
impl Clone for StaticAuthProvider
Source§fn clone(&self) -> StaticAuthProvider
fn clone(&self) -> StaticAuthProvider
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StaticAuthProvider
impl RefUnwindSafe for StaticAuthProvider
impl Send for StaticAuthProvider
impl Sync for StaticAuthProvider
impl Unpin for StaticAuthProvider
impl UnwindSafe for StaticAuthProvider
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