pub struct Resolved {
pub api_key: Option<String>,
pub headers: IndexMap<String, Option<String>>,
pub env: Option<ProviderEnv>,
pub source: String,
pub base_url: Option<String>,
}Expand description
Request credentials from a stored credential or the environment.
Fields§
§api_key: Option<String>Sent as the API key.
headers: IndexMap<String, Option<String>>Headers that carry the credential. None removes a header.
env: Option<ProviderEnv>Provider settings the request reads, such as a Cloudflare account id.
source: StringWhere the credential came from, as pi labels it.
base_url: Option<String>Replaces the model’s base URL, as a llama.cpp server URL does.
Trait Implementations§
impl Eq for Resolved
impl StructuralPartialEq for Resolved
Auto Trait Implementations§
impl Forget for Resolved
impl Freeze for Resolved
impl RefUnwindSafe for Resolved
impl Send for Resolved
impl Sync for Resolved
impl Unpin for Resolved
impl UnsafeUnpin for Resolved
impl UnwindSafe for Resolved
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.