#[non_exhaustive]pub struct ServerPropagatorConfig {
pub metadata_predicate: Option<Arc<dyn Fn(&[String], &str) -> bool + Send + Sync>>,
pub header_predicate: Option<Arc<dyn Fn(&str) -> bool + Send + Sync>>,
}Expand description
Configuration for ServerPropagator.
Both predicates are optional — sensible defaults are used when None.
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(&[String], &str) -> bool + Send + Sync>>Determines which payload metadata keys are propagated.
Default: propagate keys whose name matches a client-requested extension URI.
header_predicate: Option<Arc<dyn Fn(&str) -> bool + Send + Sync>>Determines which request headers are propagated.
Default: propagate only the x-a2a-extensions header.
Trait Implementations§
Source§impl Debug for ServerPropagatorConfig
impl Debug for ServerPropagatorConfig
Source§impl Default for ServerPropagatorConfig
impl Default for ServerPropagatorConfig
Source§fn default() -> ServerPropagatorConfig
fn default() -> ServerPropagatorConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ServerPropagatorConfig
impl !RefUnwindSafe for ServerPropagatorConfig
impl Send for ServerPropagatorConfig
impl Sync for ServerPropagatorConfig
impl Unpin for ServerPropagatorConfig
impl UnsafeUnpin for ServerPropagatorConfig
impl !UnwindSafe for ServerPropagatorConfig
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