pub struct A2aPush {
pub enabled: bool,
pub allow_private: bool,
}Expand description
Push notifications: a caller registers a webhook and agentd POSTs its task’s updates there instead of holding a stream open.
Default-OFF, because the URL comes from the caller: every delivery is an
outbound request to an address a peer chose, which is the shape of an SSRF.
Enabling it says you are willing to make that request; allow_private says
you are willing to make it to a private or loopback address, which is a
separate and larger decision (a peer could otherwise reach agentd’s own
surfaces, or a cloud metadata endpoint).
Fields§
§enabled: boolAccept CreateTaskPushNotificationConfig and deliver on transitions.
allow_private: boolPermit webhook targets on private / loopback addresses.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for A2aPush
impl<'de> Deserialize<'de> for A2aPush
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
impl StructuralPartialEq for A2aPush
Auto Trait Implementations§
impl Freeze for A2aPush
impl RefUnwindSafe for A2aPush
impl Send for A2aPush
impl Sync for A2aPush
impl Unpin for A2aPush
impl UnsafeUnpin for A2aPush
impl UnwindSafe for A2aPush
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