pub struct NotificationConfig {
pub webhook: WebhookUrl,
pub token: Option<Arc<str>>,
}Expand description
A PushNotificationConfig the A2A client registered, post-validation.
The wire codec decodes the JSON, the URL filter clears the URL, and
the resulting NotificationConfig is what the delivery port sees.
Fields§
§webhook: WebhookUrlThe webhook the server POSTs to.
token: Option<Arc<str>>An opaque token the server includes in the X-A2A-Notification-Token
header so the receiver can authenticate the delivery. Optional in
the A2A spec; a receiver without a token is a receiver that does
not need to authenticate, and the spec does not require one.
Trait Implementations§
Source§impl Clone for NotificationConfig
impl Clone for NotificationConfig
Auto Trait Implementations§
impl Freeze for NotificationConfig
impl RefUnwindSafe for NotificationConfig
impl Send for NotificationConfig
impl Sync for NotificationConfig
impl Unpin for NotificationConfig
impl UnsafeUnpin for NotificationConfig
impl UnwindSafe for NotificationConfig
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