pub struct WebhookNotifier { /* private fields */ }Expand description
Webhook notifier for delivering A2A events
Implementations§
Source§impl WebhookNotifier
impl WebhookNotifier
Sourcepub fn with_settings(max_retries: u32, retry_delay_ms: u64) -> Self
pub fn with_settings(max_retries: u32, retry_delay_ms: u64) -> Self
Create a webhook notifier with custom settings
Sourcepub async fn send_event(
&self,
config: &TaskPushNotificationConfig,
event: StreamingEvent,
) -> Result<(), WebhookError>
pub async fn send_event( &self, config: &TaskPushNotificationConfig, event: StreamingEvent, ) -> Result<(), WebhookError>
Deliver a streaming event to a webhook URL
Trait Implementations§
Source§impl Clone for WebhookNotifier
impl Clone for WebhookNotifier
Source§fn clone(&self) -> WebhookNotifier
fn clone(&self) -> WebhookNotifier
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 WebhookNotifier
impl Debug for WebhookNotifier
Auto Trait Implementations§
impl !RefUnwindSafe for WebhookNotifier
impl !UnwindSafe for WebhookNotifier
impl Freeze for WebhookNotifier
impl Send for WebhookNotifier
impl Sync for WebhookNotifier
impl Unpin for WebhookNotifier
impl UnsafeUnpin for WebhookNotifier
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