pub struct ModelAuth {
pub api_key: Option<String>,
pub headers: IndexMap<String, Option<String>>,
pub base_url: Option<String>,
}Expand description
Request credentials a provider derives, as an extension’s provider returns them.
Fields§
§api_key: Option<String>§headers: IndexMap<String, Option<String>>None removes a header.
base_url: Option<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModelAuth
impl<'de> Deserialize<'de> for ModelAuth
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for ModelAuth
Auto Trait Implementations§
impl Freeze for ModelAuth
impl RefUnwindSafe for ModelAuth
impl Send for ModelAuth
impl Sync for ModelAuth
impl Unpin for ModelAuth
impl UnsafeUnpin for ModelAuth
impl UnwindSafe for ModelAuth
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