pub struct SwitchyardConfig {Show 16 fields
pub version: u32,
pub mode: RoutingMode,
pub priority: i32,
pub decision_api_url: String,
pub decision_profile_id: String,
pub request_materialization: RequestMaterialization,
pub context_mode: ContextMode,
pub decision_timeout_millis: u64,
pub max_retries: u32,
pub recent_message_count: usize,
pub decision_headers: BTreeMap<String, String>,
pub decision_header_env: BTreeMap<String, String>,
pub enabled_inbound_profiles: BTreeSet<WireProtocol>,
pub targets: BTreeMap<String, TargetBinding>,
pub default_targets: ProtocolDefaults,
pub atof_endpoint_name: Option<String>,
}Expand description
Versioned Switchyard plugin configuration.
Fields§
§version: u32Config schema version.
mode: RoutingModeEnforce or observe-only rollout mode.
priority: i32Execution-intercept priority.
decision_api_url: StringSwitchyard Decision API URL.
decision_profile_id: StringSwitchyard profile ID.
request_materialization: RequestMaterializationCurrent-request materialization.
context_mode: ContextModeProfile context requirement.
decision_timeout_millis: u64Decision call timeout.
max_retries: u32Provider retries after the initial attempt.
recent_message_count: usizeNumber of messages in recent-message materialization.
decision_headers: BTreeMap<String, String>Static non-sensitive Decision API headers.
decision_header_env: BTreeMap<String, String>Decision API headers resolved from environment variables.
enabled_inbound_profiles: BTreeSet<WireProtocol>Enabled inbound protocols.
targets: BTreeMap<String, TargetBinding>Exact backend bindings keyed by Switchyard backend ID.
default_targets: ProtocolDefaultsTrusted per-protocol fallbacks.
atof_endpoint_name: Option<String>Named observability ATOF endpoint used by history-backed profiles.
Trait Implementations§
Source§impl Clone for SwitchyardConfig
impl Clone for SwitchyardConfig
Source§fn clone(&self) -> SwitchyardConfig
fn clone(&self) -> SwitchyardConfig
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 SwitchyardConfig
impl Debug for SwitchyardConfig
Source§impl Default for SwitchyardConfig
impl Default for SwitchyardConfig
Source§impl<'de> Deserialize<'de> for SwitchyardConfig
impl<'de> Deserialize<'de> for SwitchyardConfig
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
Source§impl EditorConfig for SwitchyardConfig
impl EditorConfig for SwitchyardConfig
Source§fn editor_schema() -> &'static EditorSchema
fn editor_schema() -> &'static EditorSchema
Returns the static editor schema for this config type.
Source§impl From<SwitchyardConfig> for PluginComponentSpec
impl From<SwitchyardConfig> for PluginComponentSpec
Source§fn from(value: SwitchyardConfig) -> Self
fn from(value: SwitchyardConfig) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SwitchyardConfig
impl RefUnwindSafe for SwitchyardConfig
impl Send for SwitchyardConfig
impl Sync for SwitchyardConfig
impl Unpin for SwitchyardConfig
impl UnsafeUnpin for SwitchyardConfig
impl UnwindSafe for SwitchyardConfig
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
Source§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request