pub struct CatalogHttpRequest {
pub auth_header_name: Option<&'static str>,
pub version_header: Option<(&'static str, &'static str)>,
/* private fields */
}Expand description
A catalog-only request. Debug output never exposes the request body or credential.
Fields§
§auth_header_name: Option<&'static str>When set, the executor writes the resolved secret in this header name
instead of the Authorization: Bearer header. The Anthropic
(x-api-key) and Gemini (x-goog-api-key) catalog protocols require a
custom API-key header.
version_header: Option<(&'static str, &'static str)>A fixed protocol header the executor writes alongside the credential
header. The Anthropic model-list protocol requires the pinned
anthropic-version: 2023-06-01 header on every request.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CatalogHttpRequest
impl RefUnwindSafe for CatalogHttpRequest
impl Send for CatalogHttpRequest
impl Sync for CatalogHttpRequest
impl Unpin for CatalogHttpRequest
impl UnsafeUnpin for CatalogHttpRequest
impl UnwindSafe for CatalogHttpRequest
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