pub struct ResolvedBackend {
pub preset_id: &'static str,
pub flavor: Flavor,
pub base_url: String,
pub api_key: String,
pub models: Vec<BackendModel>,
pub oauth: Option<OAuthSessionHandle>,
pub discover: bool,
pub extra_headers: Vec<(String, String)>,
}Expand description
A backend resolved from the environment and ready to serve.
Fields§
§preset_id: &'static str§flavor: Flavor§base_url: String§api_key: String§models: Vec<BackendModel>Models offered by this backend.
oauth: Option<OAuthSessionHandle>Subscription session for the claude-oauth preset; None otherwise.
discover: boolEnrich the curated list with a live GET {base}/models probe.
extra_headers: Vec<(String, String)>Extra default headers (e.g. OpenRouter app attribution).
Trait Implementations§
Source§impl Clone for ResolvedBackend
impl Clone for ResolvedBackend
Auto Trait Implementations§
impl Forget for ResolvedBackend
impl Freeze for ResolvedBackend
impl RefUnwindSafe for ResolvedBackend
impl Send for ResolvedBackend
impl Sync for ResolvedBackend
impl Unpin for ResolvedBackend
impl UnsafeUnpin for ResolvedBackend
impl UnwindSafe for ResolvedBackend
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