pub struct BackendResolutionInputs {
pub request_backend: Option<String>,
pub endpoint_backend: Option<String>,
pub server_default: Option<String>,
pub registry_ranked: Vec<String>,
pub env_available: Vec<String>,
}Expand description
The inputs to one backend resolution — all pre-computed by the caller so this contract stays pure.
Fields§
§request_backend: Option<String>Rung 1 — a backend named on the request. None, empty, or
"auto" = no request preference.
endpoint_backend: Option<String>Rung 2 — the axonendpoint backend: declaration, if any.
server_default: Option<String>Rung 3 — the server-wide default, if configured.
registry_ranked: Vec<String>Rung 4a — registry-scored backends, best-first (from
compute_backend_scores). stub entries are ignored.
env_available: Vec<String>Rung 4b — canonical providers with an API key present in the
environment, in canonical priority order. stub is never here.
Trait Implementations§
Source§impl Clone for BackendResolutionInputs
impl Clone for BackendResolutionInputs
Source§fn clone(&self) -> BackendResolutionInputs
fn clone(&self) -> BackendResolutionInputs
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BackendResolutionInputs
impl Debug for BackendResolutionInputs
Source§impl Default for BackendResolutionInputs
impl Default for BackendResolutionInputs
Source§fn default() -> BackendResolutionInputs
fn default() -> BackendResolutionInputs
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BackendResolutionInputs
impl RefUnwindSafe for BackendResolutionInputs
impl Send for BackendResolutionInputs
impl Sync for BackendResolutionInputs
impl Unpin for BackendResolutionInputs
impl UnsafeUnpin for BackendResolutionInputs
impl UnwindSafe for BackendResolutionInputs
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 moreCreates a shared type from an unshared type.