pub struct OAuthAuth {
pub api_key: Option<String>,
pub headers: IndexMap<String, Option<String>>,
pub base_url: Option<String>,
}Expand description
Credentials derived from an OAuth token for one request.
Fields§
§api_key: Option<String>Sent as the API key.
headers: IndexMap<String, Option<String>>Headers that carry the token instead. None removes a header.
base_url: Option<String>Replaces the model’s base URL, for providers whose endpoint depends on the account.
Trait Implementations§
impl Eq for OAuthAuth
impl StructuralPartialEq for OAuthAuth
Auto Trait Implementations§
impl Forget for OAuthAuth
impl Freeze for OAuthAuth
impl RefUnwindSafe for OAuthAuth
impl Send for OAuthAuth
impl Sync for OAuthAuth
impl Unpin for OAuthAuth
impl UnsafeUnpin for OAuthAuth
impl UnwindSafe for OAuthAuth
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.