Enum ethers_providers::Authorization
source · pub enum Authorization {
Basic(String),
Bearer(String),
Raw(String),
}
Expand description
Basic or bearer authentication in http or websocket transport
Use to inject username and password or an auth token into requests
Variants§
Basic(String)
HTTP Basic Auth
Bearer(String)
Bearer Auth
Raw(String)
If you need to override the Authorization header value
Implementations§
source§impl Authorization
impl Authorization
Trait Implementations§
source§impl Clone for Authorization
impl Clone for Authorization
source§fn clone(&self) -> Authorization
fn clone(&self) -> Authorization
Returns a copy 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 moresource§impl Debug for Authorization
impl Debug for Authorization
Auto Trait Implementations§
impl RefUnwindSafe for Authorization
impl Send for Authorization
impl Sync for Authorization
impl Unpin for Authorization
impl UnwindSafe for Authorization
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