#[non_exhaustive]pub struct ClientPropagatorConfig {
pub metadata_predicate: Option<Arc<dyn Fn(Option<&AgentCard>, &[String], &str) -> bool + Send + Sync>>,
pub header_predicate: Option<Arc<dyn Fn(Option<&AgentCard>, &str, &str) -> bool + Send + Sync>>,
}Expand description
Configuration for ClientPropagator.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.metadata_predicate: Option<Arc<dyn Fn(Option<&AgentCard>, &[String], &str) -> bool + Send + Sync>>Determines which payload metadata keys are propagated.
Default: propagate keys that are requested extensions and supported by the downstream server.
header_predicate: Option<Arc<dyn Fn(Option<&AgentCard>, &str, &str) -> bool + Send + Sync>>Determines which request headers are propagated.
Default: propagate x-a2a-extensions header values for extensions
supported by the downstream server.
Trait Implementations§
Source§impl Debug for ClientPropagatorConfig
impl Debug for ClientPropagatorConfig
Source§impl Default for ClientPropagatorConfig
impl Default for ClientPropagatorConfig
Source§fn default() -> ClientPropagatorConfig
fn default() -> ClientPropagatorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ClientPropagatorConfig
impl !RefUnwindSafe for ClientPropagatorConfig
impl Send for ClientPropagatorConfig
impl Sync for ClientPropagatorConfig
impl Unpin for ClientPropagatorConfig
impl UnsafeUnpin for ClientPropagatorConfig
impl !UnwindSafe for ClientPropagatorConfig
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