pub struct HttpSettings {
pub api_key: Secret,
pub api_key_header: Option<String>,
pub headers: IndexMap<String, String>,
pub timeout_ms: u64,
}Expand description
Shared HTTP settings.
Fields§
§api_key: SecretBearer token (sent as Authorization: Bearer ...) unless api_key_header is set.
api_key_header: Option<String>Send the key in this header instead (e.g. api-key for Azure).
headers: IndexMap<String, String>Extra headers.
timeout_ms: u64Whole-request timeout in milliseconds (default 60 000).
Trait Implementations§
Source§impl Clone for HttpSettings
impl Clone for HttpSettings
Source§impl Debug for HttpSettings
impl Debug for HttpSettings
Source§impl Default for HttpSettings
impl Default for HttpSettings
Source§impl<'de> Deserialize<'de> for HttpSettings
impl<'de> Deserialize<'de> for HttpSettings
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
Source§impl PartialEq for HttpSettings
impl PartialEq for HttpSettings
Source§impl Serialize for HttpSettings
impl Serialize for HttpSettings
impl StructuralPartialEq for HttpSettings
Auto Trait Implementations§
impl Forget for HttpSettings
impl Freeze for HttpSettings
impl Move for HttpSettings
impl RefUnwindSafe for HttpSettings
impl Send for HttpSettings
impl Sync for HttpSettings
impl Unpin for HttpSettings
impl UnsafeUnpin for HttpSettings
impl UnwindSafe for HttpSettings
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