pub struct BackendSection {
pub base_url: String,
pub auth: AuthConfig,
pub http: HttpConfig,
}Expand description
[backend] section — the OpenAPI/REST HTTP backend declaration (D-06).
This is the HTTP analog of DatabaseSection: it identifies the upstream
REST API the synthesized tools call. base_url is the API root; the optional
[backend.auth] sub-table selects an AuthConfig variant (type = "...")
and [backend.http] carries HttpConfig tuning (timeout / retries / …).
Gated behind the http feature — the whole section (and the
ServerConfig::backend field) is absent in a no-http build so there is no
dead stub type. AuthConfig and HttpConfig are DEFINED in
crate::http (Plan 90-01) and re-exported here, not redefined (H3).
Strict-parse discipline (D-13) is preserved: #[serde(deny_unknown_fields)]
rejects a typo’d key under [backend] or [backend.http].
Secrets posture (T-90-02-02): inline token fields under [backend.auth]
hold operator references (${ENV} / env:VAR) resolved upstream by the
Phase 83 secrets machinery — config parsing stores the string verbatim and
never the resolved value.
Fields§
§base_url: StringREST API root URL (e.g. "https://api.tfl.gov.uk"). Single-call tools
concatenate their path onto this (an empty per-tool base_url
inherits this value).
auth: AuthConfig[backend.auth] — outgoing authentication (AuthConfig, six modes).
Defaults to AuthConfig::None when the sub-table is omitted.
http: HttpConfig[backend.http] — client tuning (HttpConfig: timeout / retries /
backoff / user-agent / default headers). Defaults to HttpConfig’s
defaults when the sub-table is omitted.
Trait Implementations§
Source§impl Clone for BackendSection
impl Clone for BackendSection
Source§fn clone(&self) -> BackendSection
fn clone(&self) -> BackendSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for BackendSection
impl Debug for BackendSection
Source§impl Default for BackendSection
impl Default for BackendSection
Source§fn default() -> BackendSection
fn default() -> BackendSection
Source§impl<'de> Deserialize<'de> for BackendSection
impl<'de> Deserialize<'de> for BackendSection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for BackendSection
impl PartialEq for BackendSection
Source§fn eq(&self, other: &BackendSection) -> bool
fn eq(&self, other: &BackendSection) -> bool
self and other values to be equal, and is used by ==.Source§impl Serialize for BackendSection
impl Serialize for BackendSection
impl Eq for BackendSection
impl StructuralPartialEq for BackendSection
Auto Trait Implementations§
impl Freeze for BackendSection
impl RefUnwindSafe for BackendSection
impl Send for BackendSection
impl Sync for BackendSection
impl Unpin for BackendSection
impl UnsafeUnpin for BackendSection
impl UnwindSafe for BackendSection
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
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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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>
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>
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