pub struct BasicAuth { /* private fields */ }
Expand description
Basic Authentication using API Key and Secret
This authentication method uses HTTP Basic Authentication with the API key as username and API secret as password.
Implementations§
Trait Implementations§
Source§impl Auth for BasicAuth
impl Auth for BasicAuth
Source§fn auth_headers(&self) -> Result<Vec<(String, String)>>
fn auth_headers(&self) -> Result<Vec<(String, String)>>
Generate authentication headers for HTTP requests
Returns a vector of (header_name, header_value) tuples
Source§fn apply_auth(
&self,
builder: RequestBuilder,
_body: Option<&[u8]>,
) -> Result<RequestBuilder>
fn apply_auth( &self, builder: RequestBuilder, _body: Option<&[u8]>, ) -> Result<RequestBuilder>
Apply authentication to a request builder
This allows different auth methods to customize the request as needed
Auto Trait Implementations§
impl Freeze for BasicAuth
impl RefUnwindSafe for BasicAuth
impl Send for BasicAuth
impl Sync for BasicAuth
impl Unpin for BasicAuth
impl UnwindSafe for BasicAuth
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