pub struct ResolvedTarget {
pub provider_name: String,
pub service_id: String,
pub api_protocol: ApiProtocol,
pub api_key_override: Option<String>,
pub api_base_override: Option<String>,
}Expand description
A routing target with full resolution context including any per-endpoint overrides.
Fields§
§provider_name: String§service_id: StringUpstream service identifier: model ID for language models, tool ID for tools.
api_protocol: ApiProtocolThe resolved API protocol for this endpoint.
Resolution order: endpoint override > provider default.
api_key_override: Option<String>Per-endpoint API key override.
api_base_override: Option<String>Per-endpoint API base override.
Trait Implementations§
Source§impl Clone for ResolvedTarget
impl Clone for ResolvedTarget
Source§fn clone(&self) -> ResolvedTarget
fn clone(&self) -> ResolvedTarget
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ResolvedTarget
impl RefUnwindSafe for ResolvedTarget
impl Send for ResolvedTarget
impl Sync for ResolvedTarget
impl Unpin for ResolvedTarget
impl UnsafeUnpin for ResolvedTarget
impl UnwindSafe for ResolvedTarget
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more