pub struct ProxyRoutingOverride {
pub strategy: Option<RoutingStrategy>,
pub fallback_on_error: Option<bool>,
pub tool_overrides: Option<Vec<ProxyToolRule>>,
}Expand description
Per-server partial override for ProxyRoutingConfig.
Every field is Option so that an override block touches only what it explicitly
sets — omitted fields inherit from the global [proxy.routing]. This matches the
“override what you want, keep what you don’t” intuition a reviewer would expect
from the merge semantics described in the docs.
Fields§
§strategy: Option<RoutingStrategy>§fallback_on_error: Option<bool>§tool_overrides: Option<Vec<ProxyToolRule>>Trait Implementations§
Source§impl Clone for ProxyRoutingOverride
impl Clone for ProxyRoutingOverride
Source§fn clone(&self) -> ProxyRoutingOverride
fn clone(&self) -> ProxyRoutingOverride
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 ProxyRoutingOverride
impl Debug for ProxyRoutingOverride
Source§impl Default for ProxyRoutingOverride
impl Default for ProxyRoutingOverride
Source§fn default() -> ProxyRoutingOverride
fn default() -> ProxyRoutingOverride
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ProxyRoutingOverride
impl<'de> Deserialize<'de> for ProxyRoutingOverride
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ProxyRoutingOverride
impl RefUnwindSafe for ProxyRoutingOverride
impl Send for ProxyRoutingOverride
impl Sync for ProxyRoutingOverride
impl Unpin for ProxyRoutingOverride
impl UnsafeUnpin for ProxyRoutingOverride
impl UnwindSafe for ProxyRoutingOverride
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